Stubtest fixes for the latest patch release of py311 (#11107)

This commit is contained in:
Alex Waygood
2023-12-06 00:55:46 +00:00
committed by GitHub
parent fd7ff19577
commit 9eb099ed6b
3 changed files with 10 additions and 0 deletions

View File

@@ -33,6 +33,9 @@ __all__ = [
if sys.version_info >= (3, 8):
__all__ += ["open_code"]
if sys.version_info >= (3, 11):
__all__ += ["DEFAULT_BUFFER_SIZE", "IncrementalNewlineDecoder", "text_encoding"]
_T = TypeVar("_T")
DEFAULT_BUFFER_SIZE: Literal[8192]

View File

@@ -19,6 +19,9 @@ FLAGS: dict[str, int]
TYPE_FLAGS: int
GLOBAL_FLAGS: int
if sys.version_info >= (3, 11):
MAXWIDTH: int
if sys.version_info < (3, 11):
class Verbose(Exception): ...

View File

@@ -14,6 +14,10 @@ enum.Enum.__init__
tkinter._VersionInfoType.__doc__
typing.NewType.__mro_entries__
# These can be removed when the next patch release of 3.12 comes out:
io.__all__
sre_parse.MAXWIDTH
# ==========
# Related to positional-only arguments
# ==========