Updates for Python 3.11.0b4 (#8288)

This commit is contained in:
Sebastian Rittau
2022-07-13 13:10:20 +02:00
committed by GitHub
parent b92286982d
commit 91fd79c158
9 changed files with 75 additions and 14 deletions

View File

@@ -168,3 +168,10 @@ ast.ImportFrom.level # None on the class, but never None on instances
# White lies around defaults
dataclasses.KW_ONLY
# Runtime signature is incorrect (https://github.com/python/cpython/issues/93021)
builtins.classmethod.__get__
builtins.property.__get__
builtins.staticmethod.__get__
types.FunctionType.__get__
types.LambdaType.__get__

View File

@@ -46,9 +46,6 @@ tkinter._VersionInfoType.__doc__
typing.ForwardRef._evaluate
typing.NewType.__call__
typing.NewType.__mro_entries__
typing.ParamSpec.__typing_subst__
typing.TypeVar.__typing_subst__
typing.TypeVarTuple.__typing_subst__
weakref.WeakValueDictionary.update
# stubtest complains that in 3.10 the default argument is inconsistent with the annotation,
@@ -153,6 +150,12 @@ ast.ImportFrom.level # None on the class, but never None on instances
contextlib.AbstractAsyncContextManager.__class_getitem__
contextlib.AbstractContextManager.__class_getitem__
# The argument to is_python_build() is deprecated since Python 3.11 and
# has a default value of None to check for its existence and warn if it's
# supplied. None is not supposed to be passed by user code and therefore
# not included in the stubs.
sysconfig.is_python_build
# Super-special typing primitives
typing._SpecialForm.__mro_entries__
typing._TypedDict.__delitem__
@@ -176,8 +179,8 @@ wsgiref.types.InputStream.readlines
wsgiref.types.StartResponse.__call__
wsgiref.types._Readable.read
# https://github.com/python/mypy/issues/13114
wsgiref.types.WSGIEnvironment
# https://github.com/python/mypy/issues/12821 (stubtest bug with Callable type alias)
wsgiref.types.WSGIApplication
# Really it's mad about dict.get
wsgiref.types.WSGIEnvironment.get

View File

@@ -153,3 +153,10 @@ pyexpat.XMLParserType.ExternalEntityParserCreate # C signature is wrong - funct
xml.parsers.expat.XMLParserType.ExternalEntityParserCreate # C signature is wrong - function gets only positional args
pyexpat.XMLParserType.intern # does exist but stubtest can't see it (https://github.com/python/cpython/blob/3.7/Modules/pyexpat.c#L1322)
xml.parsers.expat.XMLParserType.intern # does exist but stubtest can't see it (https://github.com/python/cpython/blob/3.7/Modules/pyexpat.c#L1322)
# Runtime signature is incorrect (https://github.com/python/cpython/issues/93021)
builtins.classmethod.__get__
builtins.property.__get__
builtins.staticmethod.__get__
types.FunctionType.__get__
types.LambdaType.__get__

View File

@@ -170,3 +170,10 @@ queue.SimpleQueue.__init__
uuid.getnode # undocumented, unused parameter getters that was later removed
types.CodeType.replace # stubtest thinks default values are None but None doesn't work at runtime
# Runtime signature is incorrect (https://github.com/python/cpython/issues/93021)
builtins.classmethod.__get__
builtins.property.__get__
builtins.staticmethod.__get__
types.FunctionType.__get__
types.LambdaType.__get__

View File

@@ -169,3 +169,10 @@ ast.ImportFrom.level # None on the class, but never None on instances
ftplib.FTP.trust_server_pasv_ipv4_address # Dangerous to use, intentionally undocumented, intentionally missing from typeshed. #6154
os.PathLike.__class_getitem__ # PathLike is a protocol; we don't expect all PathLike classes to implement class_getitem
# Runtime signature is incorrect (https://github.com/python/cpython/issues/93021)
builtins.classmethod.__get__
builtins.property.__get__
builtins.staticmethod.__get__
types.FunctionType.__get__
types.LambdaType.__get__

View File

@@ -428,13 +428,8 @@ re.Pattern.scanner # Undocumented and not useful. #6405
tempfile._TemporaryFileWrapper.[\w_]+ # Dynamically specified by __getattr__, and thus don't exist on the class
# Runtime signature is incorrect (https://github.com/python/cpython/issues/93021)
builtins.classmethod.__get__
builtins.property.__get__
builtins.staticmethod.__get__
types.ClassMethodDescriptorType.__get__
types.FunctionType.__get__
types.GetSetDescriptorType.__get__
types.LambdaType.__get__
types.MemberDescriptorType.__get__
types.MethodDescriptorType.__get__
types.WrapperDescriptorType.__get__