mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Stubtest fixes for the latest patch release of py311 (#11107)
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
|
||||
@@ -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
|
||||
# ==========
|
||||
|
||||
Reference in New Issue
Block a user