mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
PY-86101 Update typeshed version to 5d41fd6800407489925bc57d29dd5ffe6f71ce0b
Closes PY-86101 GitOrigin-RevId: bc47b6a33108ec2045517451b59892b64baddfa2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d8efd18fb9
commit
eabdebf2b2
@@ -1,3 +1,11 @@
|
||||
# =========
|
||||
# Temporary
|
||||
# =========
|
||||
|
||||
# Added in Python 3.10.20 (parameter `scripting`)
|
||||
html.parser.HTMLParser.__init__
|
||||
|
||||
|
||||
# =======
|
||||
# <= 3.12
|
||||
# =======
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
# =========
|
||||
# Temporary
|
||||
# =========
|
||||
|
||||
# Added in Python 3.11.15 (parameter `scripting`)
|
||||
html.parser.HTMLParser.__init__
|
||||
|
||||
|
||||
# ============
|
||||
# 3.11 to 3.12
|
||||
# ============
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
# =========
|
||||
# Temporary
|
||||
# =========
|
||||
|
||||
# Added in Python 3.12.13 (parameter `scripting`)
|
||||
html.parser.HTMLParser.__init__
|
||||
|
||||
|
||||
# ============
|
||||
# 3.11 to 3.12
|
||||
# ============
|
||||
|
||||
@@ -3,10 +3,3 @@
|
||||
# =======
|
||||
|
||||
(mmap.MAP_32BIT)? # Exists locally on MacOS but not on GitHub
|
||||
|
||||
# ================
|
||||
# Unclear problems
|
||||
# ================
|
||||
|
||||
# Added in 3.11.1, flagged by stubtest on Python < 3.14 for unknown reasons
|
||||
errno.ENOTCAPABLE
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
# =========
|
||||
# 3.14 only
|
||||
# =========
|
||||
|
||||
# Starting with Python 3.14.1, these methods accept None for some of their
|
||||
# parameters, but would raise a TypeError with Python 3.14.0.
|
||||
mmap.mmap.madvise
|
||||
|
||||
# =======
|
||||
# >= 3.13
|
||||
# =======
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
# =========
|
||||
# Temporary
|
||||
# =========
|
||||
|
||||
# Added in Python 3.9.25 (parameter `scripting`)
|
||||
html.parser.HTMLParser.__init__
|
||||
|
||||
|
||||
# =======
|
||||
# <= 3.12
|
||||
# =======
|
||||
|
||||
@@ -10,14 +10,6 @@
|
||||
(fcntl.F_SETLEASE)? # GNU extension
|
||||
|
||||
|
||||
# =======
|
||||
# <= 3.14
|
||||
# =======
|
||||
|
||||
# Added in Python 3.9.25, 3.10.20, 3.11.15, 3.12.13, 3.13.10, 3.14.1 (parameter `scripting`)
|
||||
html.parser.HTMLParser.__init__
|
||||
|
||||
|
||||
# ==========================================
|
||||
# Modules that do not exist on MacOS systems
|
||||
# ==========================================
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# =======
|
||||
# <= 3.14
|
||||
# =======
|
||||
# =========
|
||||
# Temporary
|
||||
# =========
|
||||
|
||||
# Added in Python 3.10.20 (parameter `scripting`)
|
||||
html.parser.HTMLParser.__init__
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# =======
|
||||
# <= 3.14
|
||||
# =======
|
||||
# =========
|
||||
# Temporary
|
||||
# =========
|
||||
|
||||
# Added in Python 3.11.15 (parameter `scripting`)
|
||||
html.parser.HTMLParser.__init__
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# =======
|
||||
# <= 3.14
|
||||
# =======
|
||||
# =========
|
||||
# Temporary
|
||||
# =========
|
||||
|
||||
# Added in Python 3.12.13 (parameter `scripting`)
|
||||
html.parser.HTMLParser.__init__
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
# =======
|
||||
# <= 3.14
|
||||
# =======
|
||||
|
||||
# Added in Python 3.13.10 (parameter `scripting`)
|
||||
html.parser.HTMLParser.__init__
|
||||
@@ -1,6 +1,7 @@
|
||||
# =======
|
||||
# <= 3.14
|
||||
# =======
|
||||
# =========
|
||||
# 3.14 only
|
||||
# =========
|
||||
|
||||
# Added in Python 3.14.1 (parameter `scripting`)
|
||||
html.parser.HTMLParser.__init__
|
||||
# Starting with Python 3.14.1, these methods accept None for some of their
|
||||
# parameters, but would raise a TypeError with Python 3.14.0.
|
||||
mmap.mmap.madvise
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
# =========
|
||||
# Temporary
|
||||
# =========
|
||||
|
||||
|
||||
# Will be added in 3.10.20
|
||||
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
|
||||
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification
|
||||
xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold
|
||||
xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification
|
||||
|
||||
|
||||
# =========================
|
||||
# New errors in Python 3.10
|
||||
# =========================
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
# =========
|
||||
# Temporary
|
||||
# =========
|
||||
|
||||
|
||||
# Will be added in 3.11.15
|
||||
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
|
||||
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification
|
||||
xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold
|
||||
xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification
|
||||
|
||||
|
||||
# =========================
|
||||
# New errors in Python 3.11
|
||||
# =========================
|
||||
|
||||
@@ -1,3 +1,14 @@
|
||||
# =========
|
||||
# Temporary
|
||||
# =========
|
||||
|
||||
# Will be added in 3.12.13
|
||||
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
|
||||
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification
|
||||
xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold
|
||||
xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification
|
||||
|
||||
|
||||
# =========================
|
||||
# New errors in Python 3.12
|
||||
# =========================
|
||||
|
||||
@@ -43,6 +43,13 @@ importlib.util.Loader.exec_module # See Lib/importlib/_abc.py. Might be defined
|
||||
threading.Condition.locked
|
||||
multiprocessing.dummy.Condition.locked
|
||||
|
||||
# Starting with Python 3.14.1, these methods accept None for some of their
|
||||
# parameters, but would raise a TypeError with Python 3.14.0.
|
||||
mmap.mmap.find
|
||||
mmap.mmap.flush
|
||||
mmap.mmap.rfind
|
||||
multiprocessing.process.BaseProcess.__init__
|
||||
|
||||
# ====================================
|
||||
# Pre-existing errors from Python 3.13
|
||||
# ====================================
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
# =======
|
||||
# <= 3.12
|
||||
# =======
|
||||
# =========
|
||||
# Temporary
|
||||
# =========
|
||||
|
||||
# Added in Python 3.10.20 (parameter `scripting`)
|
||||
html.parser.HTMLParser.__init__
|
||||
|
||||
# Added in Python 3.10.18 (parameter `escapable`)
|
||||
html.parser.HTMLParser.set_cdata_mode
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
# =======
|
||||
# <= 3.12
|
||||
# =======
|
||||
# =========
|
||||
# Temporary
|
||||
# =========
|
||||
|
||||
# Added in Python 3.11.15 (parameter `scripting`)
|
||||
html.parser.HTMLParser.__init__
|
||||
|
||||
# Added in Python 3.11.13 (parameter `escapable`)
|
||||
html.parser.HTMLParser.set_cdata_mode
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
# =========
|
||||
# Temporary
|
||||
# =========
|
||||
|
||||
# Added in Python 3.12.13 (parameter `scripting`)
|
||||
html.parser.HTMLParser.__init__
|
||||
|
||||
|
||||
# =======
|
||||
# >= 3.12
|
||||
# =======
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
# =======
|
||||
# <= 3.12
|
||||
# =======
|
||||
# =========
|
||||
# Temporary
|
||||
# =========
|
||||
|
||||
# Added in Python 3.9.25 (parameter `scripting`)
|
||||
html.parser.HTMLParser.__init__
|
||||
|
||||
# Added in Python 3.9.23 (parameter `escapable`)
|
||||
html.parser.HTMLParser.set_cdata_mode
|
||||
|
||||
@@ -9,14 +9,6 @@ _winapi.OpenFileMapping
|
||||
_winapi.VirtualQuerySize
|
||||
|
||||
|
||||
# =======
|
||||
# <= 3.14
|
||||
# =======
|
||||
|
||||
# Added in Python 3.9.25, 3.10.20, 3.11.15, 3.12.13, 3.13.10, 3.14.1 (parameter `scripting`)
|
||||
html.parser.HTMLParser.__init__
|
||||
|
||||
|
||||
# ============================================
|
||||
# Modules that do not exist on Windows systems
|
||||
# ============================================
|
||||
|
||||
@@ -731,8 +731,13 @@ class bytes(Sequence[int]):
|
||||
def translate(self, table: ReadableBuffer | None, /, delete: ReadableBuffer = b"") -> bytes: ...
|
||||
def upper(self) -> bytes: ...
|
||||
def zfill(self, width: SupportsIndex, /) -> bytes: ...
|
||||
@classmethod
|
||||
def fromhex(cls, string: str, /) -> Self: ...
|
||||
if sys.version_info >= (3, 14):
|
||||
@classmethod
|
||||
def fromhex(cls, string: str | ReadableBuffer, /) -> Self: ...
|
||||
else:
|
||||
@classmethod
|
||||
def fromhex(cls, string: str, /) -> Self: ...
|
||||
|
||||
@staticmethod
|
||||
def maketrans(frm: ReadableBuffer, to: ReadableBuffer, /) -> bytes: ...
|
||||
def __len__(self) -> int: ...
|
||||
@@ -836,8 +841,13 @@ class bytearray(MutableSequence[int]):
|
||||
def translate(self, table: ReadableBuffer | None, /, delete: bytes = b"") -> bytearray: ...
|
||||
def upper(self) -> bytearray: ...
|
||||
def zfill(self, width: SupportsIndex, /) -> bytearray: ...
|
||||
@classmethod
|
||||
def fromhex(cls, string: str, /) -> Self: ...
|
||||
if sys.version_info >= (3, 14):
|
||||
@classmethod
|
||||
def fromhex(cls, string: str | ReadableBuffer, /) -> Self: ...
|
||||
else:
|
||||
@classmethod
|
||||
def fromhex(cls, string: str, /) -> Self: ...
|
||||
|
||||
@staticmethod
|
||||
def maketrans(frm: ReadableBuffer, to: ReadableBuffer, /) -> bytes: ...
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
from _heapq import *
|
||||
from _typeshed import SupportsRichComparison
|
||||
from collections.abc import Callable, Generator, Iterable
|
||||
@@ -5,6 +6,10 @@ from typing import Any, Final, TypeVar
|
||||
|
||||
__all__ = ["heappush", "heappop", "heapify", "heapreplace", "merge", "nlargest", "nsmallest", "heappushpop"]
|
||||
|
||||
if sys.version_info >= (3, 14):
|
||||
# Added to __all__ in 3.14.1
|
||||
__all__ += ["heapify_max", "heappop_max", "heappush_max", "heappushpop_max", "heapreplace_max"]
|
||||
|
||||
_S = TypeVar("_S")
|
||||
|
||||
__about__: Final[str]
|
||||
|
||||
@@ -54,28 +54,28 @@ class mmap:
|
||||
) -> Self: ...
|
||||
|
||||
def close(self) -> None: ...
|
||||
def flush(self, offset: int = 0, size: int = ...) -> None: ...
|
||||
def move(self, dest: int, src: int, count: int) -> None: ...
|
||||
def flush(self, offset: int = 0, size: int = ..., /) -> None: ...
|
||||
def move(self, dest: int, src: int, count: int, /) -> None: ...
|
||||
def read_byte(self) -> int: ...
|
||||
def readline(self) -> bytes: ...
|
||||
def resize(self, newsize: int) -> None: ...
|
||||
def resize(self, newsize: int, /) -> None: ...
|
||||
if sys.platform != "win32":
|
||||
def seek(self, pos: int, whence: Literal[0, 1, 2, 3, 4] = os.SEEK_SET) -> None: ...
|
||||
def seek(self, pos: int, whence: Literal[0, 1, 2, 3, 4] = os.SEEK_SET, /) -> None: ...
|
||||
else:
|
||||
def seek(self, pos: int, whence: Literal[0, 1, 2] = os.SEEK_SET) -> None: ...
|
||||
def seek(self, pos: int, whence: Literal[0, 1, 2] = os.SEEK_SET, /) -> None: ...
|
||||
|
||||
def size(self) -> int: ...
|
||||
def tell(self) -> int: ...
|
||||
def write_byte(self, byte: int) -> None: ...
|
||||
def write_byte(self, byte: int, /) -> None: ...
|
||||
def __len__(self) -> int: ...
|
||||
closed: bool
|
||||
if sys.platform != "win32":
|
||||
def madvise(self, option: int, start: int = 0, length: int = ...) -> None: ...
|
||||
def madvise(self, option: int, start: int = 0, length: int = ..., /) -> None: ...
|
||||
|
||||
def find(self, sub: ReadableBuffer, start: int = ..., stop: int = ...) -> int: ...
|
||||
def rfind(self, sub: ReadableBuffer, start: int = ..., stop: int = ...) -> int: ...
|
||||
def read(self, n: int | None = None) -> bytes: ...
|
||||
def write(self, bytes: ReadableBuffer) -> int: ...
|
||||
def find(self, view: ReadableBuffer, start: int = ..., end: int = ..., /) -> int: ...
|
||||
def rfind(self, view: ReadableBuffer, start: int = ..., end: int = ..., /) -> int: ...
|
||||
def read(self, n: int | None = None, /) -> bytes: ...
|
||||
def write(self, bytes: ReadableBuffer, /) -> int: ...
|
||||
@overload
|
||||
def __getitem__(self, key: int, /) -> int: ...
|
||||
@overload
|
||||
@@ -92,7 +92,7 @@ class mmap:
|
||||
# so we claim that there is also an __iter__ to help type checkers.
|
||||
def __iter__(self) -> Iterator[int]: ...
|
||||
def __enter__(self) -> Self: ...
|
||||
def __exit__(self, *args: Unused) -> None: ...
|
||||
def __exit__(self, exc_type: Unused, exc_value: Unused, traceback: Unused, /) -> None: ...
|
||||
def __buffer__(self, flags: int, /) -> memoryview: ...
|
||||
def __release_buffer__(self, buffer: memoryview, /) -> None: ...
|
||||
if sys.version_info >= (3, 13):
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import array
|
||||
import sys
|
||||
import threading
|
||||
import weakref
|
||||
from collections.abc import Callable, Iterable, Mapping, Sequence
|
||||
@@ -44,14 +45,25 @@ class DummyProcess(threading.Thread):
|
||||
_start_called: int
|
||||
@property
|
||||
def exitcode(self) -> Literal[0] | None: ...
|
||||
def __init__(
|
||||
self,
|
||||
group: Any = None,
|
||||
target: Callable[..., object] | None = None,
|
||||
name: str | None = None,
|
||||
args: Iterable[Any] = (),
|
||||
kwargs: Mapping[str, Any] = {},
|
||||
) -> None: ...
|
||||
if sys.version_info >= (3, 14):
|
||||
# Default changed in Python 3.14.1
|
||||
def __init__(
|
||||
self,
|
||||
group: Any = None,
|
||||
target: Callable[..., object] | None = None,
|
||||
name: str | None = None,
|
||||
args: Iterable[Any] = (),
|
||||
kwargs: Mapping[str, Any] | None = None,
|
||||
) -> None: ...
|
||||
else:
|
||||
def __init__(
|
||||
self,
|
||||
group: Any = None,
|
||||
target: Callable[..., object] | None = None,
|
||||
name: str | None = None,
|
||||
args: Iterable[Any] = (),
|
||||
kwargs: Mapping[str, Any] | None = {},
|
||||
) -> None: ...
|
||||
|
||||
Process = DummyProcess
|
||||
|
||||
|
||||
@@ -174,7 +174,8 @@ __all__ = [
|
||||
"write",
|
||||
]
|
||||
if sys.version_info >= (3, 14):
|
||||
__all__ += ["readinto"]
|
||||
# reload_environ was added to __all__ in Python 3.14.1
|
||||
__all__ += ["readinto", "reload_environ"]
|
||||
if sys.platform == "darwin" and sys.version_info >= (3, 12):
|
||||
__all__ += ["PRIO_DARWIN_BG", "PRIO_DARWIN_NONUI", "PRIO_DARWIN_PROCESS", "PRIO_DARWIN_THREAD"]
|
||||
if sys.platform == "darwin" and sys.version_info >= (3, 10):
|
||||
|
||||
@@ -201,8 +201,8 @@ class Pdb(Bdb, Cmd):
|
||||
def completenames(self, text: str, line: str, begidx: int, endidx: int) -> list[str]: ... # type: ignore[override]
|
||||
if sys.version_info >= (3, 12):
|
||||
def set_convenience_variable(self, frame: FrameType, name: str, value: Any) -> None: ...
|
||||
if sys.version_info >= (3, 13) and sys.version_info < (3, 14):
|
||||
# Added in 3.13.8.
|
||||
if sys.version_info >= (3, 13):
|
||||
# Added in 3.13.8 and 3.14.1
|
||||
@property
|
||||
def rlcompleter(self) -> type[Completer]: ...
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
from _typeshed import ReadableBuffer, SupportsRead
|
||||
from collections.abc import Callable
|
||||
from pyexpat import errors as errors, model as model
|
||||
@@ -29,6 +30,11 @@ class XMLParserType:
|
||||
def UseForeignDTD(self, flag: bool = True, /) -> None: ...
|
||||
def GetReparseDeferralEnabled(self) -> bool: ...
|
||||
def SetReparseDeferralEnabled(self, enabled: bool, /) -> None: ...
|
||||
if sys.version_info >= (3, 10):
|
||||
# Added in Python 3.10.20, 3.11.15, 3.12.3, 3.13.10, 3.14.1
|
||||
def SetAllocTrackerActivationThreshold(self, threshold: int, /) -> None: ...
|
||||
def SetAllocTrackerMaximumAmplification(self, max_factor: float, /) -> None: ...
|
||||
|
||||
@property
|
||||
def intern(self) -> dict[str, str]: ...
|
||||
buffer_size: int
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
from .async_recorder import AsyncAWSXRayRecorder as AsyncAWSXRayRecorder
|
||||
from .patcher import patch as patch, patch_all as patch_all
|
||||
from .recorder import AWSXRayRecorder as AWSXRayRecorder
|
||||
|
||||
xray_recorder: AWSXRayRecorder
|
||||
xray_recorder: AsyncAWSXRayRecorder
|
||||
|
||||
__all__ = ["patch", "patch_all", "xray_recorder", "AWSXRayRecorder"]
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
version = "3.2.*"
|
||||
version = "3.3.*"
|
||||
upstream_repository = "https://github.com/python-greenlet/greenlet"
|
||||
|
||||
Reference in New Issue
Block a user