mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-31 00:24:24 +08:00
Use stubtest 0.920 (#6589)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Sebastian Rittau <srittau@rittau.biz> Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
@@ -36,6 +36,10 @@ msvcrt
|
||||
winreg
|
||||
winsound
|
||||
|
||||
# Aliases for OSError
|
||||
posix.error.characters_written
|
||||
resource.error.characters_written
|
||||
|
||||
# NamedTuple like, but not actually NamedTuples (PyStructSequence)
|
||||
posix.[a-z]+_(param|result)._(asdict|make|replace)
|
||||
|
||||
|
||||
@@ -31,6 +31,8 @@ asyncio.futures.Future.__init__ # Usually initialized from c object
|
||||
asyncio.futures.Future._callbacks # Usually initialized from c object
|
||||
builtins.dict.get
|
||||
contextvars.Context.__init__ # Default C __init__ signature is wrong
|
||||
contextlib.AbstractAsyncContextManager.__class_getitem__
|
||||
contextlib.AbstractContextManager.__class_getitem__
|
||||
dataclasses.field
|
||||
dataclasses.KW_ONLY
|
||||
enum.Enum._generate_next_value_
|
||||
@@ -40,6 +42,8 @@ functools.partialmethod.__get__
|
||||
functools.singledispatchmethod.__call__
|
||||
gettext.install
|
||||
gettext.translation
|
||||
hashlib.sha3_\d+ # Can be a class or a built-in function
|
||||
hashlib.shake_\d+ # Can be a class or a built-in function
|
||||
hmac.new # Stub is a white lie; see comments in the stub
|
||||
http.server.SimpleHTTPRequestHandler.__init__ # *args is expanded
|
||||
importlib.abc.Traversable.__init__ # Inherits __init__ from typing.Protocol
|
||||
@@ -106,8 +110,11 @@ _collections_abc.Generator.send
|
||||
_collections_abc.Generator.throw
|
||||
contextvars.ContextVar.reset
|
||||
contextvars.ContextVar.set
|
||||
contextlib.AbstractAsyncContextManager.__aexit__
|
||||
contextlib.AbstractContextManager.__exit__
|
||||
io.IncrementalNewlineDecoder.setstate
|
||||
typing.SupportsRound.__round__
|
||||
types.DynamicClassAttribute..* # In the stub we pretend it's an alias for property, but it has positional-only differences
|
||||
|
||||
# These enums derive from (str, Enum). See comment in py3_common.txt
|
||||
pstats.SortKey.__new__
|
||||
|
||||
@@ -43,24 +43,24 @@ typing.AsyncGenerator.ag_await
|
||||
typing.AsyncGenerator.ag_code
|
||||
typing.AsyncGenerator.ag_frame
|
||||
typing.AsyncGenerator.ag_running
|
||||
typing.ChainMap.fromkeys
|
||||
typing.Coroutine.cr_await
|
||||
typing.Coroutine.cr_code
|
||||
typing.Coroutine.cr_frame
|
||||
typing.Coroutine.cr_running
|
||||
typing.Generator.__new__
|
||||
typing.Generator.gi_code
|
||||
typing.Generator.gi_frame
|
||||
typing.Generator.gi_running
|
||||
typing.Generator.gi_yieldfrom
|
||||
typing.GenericMeta.__new__
|
||||
typing.IO.closed # Incorrect definition in CPython, fixed in bpo-39493
|
||||
typing.Mapping.get
|
||||
typing.NamedTuple.__new__
|
||||
typing.NamedTuple._asdict
|
||||
typing.NamedTuple._make
|
||||
typing.NamedTuple._replace
|
||||
typing.Sequence.index
|
||||
typing.Text.maketrans
|
||||
typing.runtime_checkable
|
||||
typing\.\w+\.__new__
|
||||
unittest._log # New in Python 3.9
|
||||
unittest.async_case # Added in Python 3.8
|
||||
uuid.UUID.int
|
||||
@@ -72,6 +72,14 @@ tkinter.EventType.__new__
|
||||
|
||||
builtins.memoryview.__iter__ # C type that implements __getitem__
|
||||
builtins.memoryview.cast # inspect.signature is incorrect about shape being kw-only
|
||||
sqlite3.dbapi2.Binary.__iter__ # C type that implements __getitem__
|
||||
sqlite3.dbapi2.Binary.cast # inspect.signature is incorrect about shape being kw-only
|
||||
sqlite3.Binary.__iter__ # C type that implements __getitem__
|
||||
sqlite3.Binary.cast # inspect.signature is incorrect about shape being kw-only
|
||||
|
||||
sqlite3.OptimizedUnicode.maketrans
|
||||
sqlite3.dbapi2.OptimizedUnicode.maketrans
|
||||
|
||||
collections.Coroutine.cr_await
|
||||
collections.Coroutine.cr_code
|
||||
collections.Coroutine.cr_frame
|
||||
|
||||
@@ -51,6 +51,7 @@ typing.NamedTuple._replace
|
||||
typing._SpecialForm.__init__
|
||||
typing._SpecialForm.__new__
|
||||
typing.runtime_checkable
|
||||
typing.Text.maketrans
|
||||
unittest._log # New in Python 3.9
|
||||
unittest.async_case # Added in Python 3.8
|
||||
uuid.UUID.int
|
||||
@@ -65,6 +66,14 @@ tkinter.EventType.__new__
|
||||
|
||||
builtins.memoryview.__iter__ # C type that implements __getitem__
|
||||
builtins.memoryview.cast # inspect.signature is incorrect about shape being kw-only
|
||||
sqlite3.dbapi2.Binary.__iter__ # C type that implements __getitem__
|
||||
sqlite3.dbapi2.Binary.cast # inspect.signature is incorrect about shape being kw-only
|
||||
sqlite3.Binary.__iter__ # C type that implements __getitem__
|
||||
sqlite3.Binary.cast # inspect.signature is incorrect about shape being kw-only
|
||||
|
||||
sqlite3.OptimizedUnicode.maketrans
|
||||
sqlite3.dbapi2.OptimizedUnicode.maketrans
|
||||
|
||||
collections.Coroutine.cr_await
|
||||
collections.Coroutine.cr_code
|
||||
collections.Coroutine.cr_frame
|
||||
|
||||
@@ -82,6 +82,10 @@ tkinter.EventType.__new__
|
||||
|
||||
builtins.memoryview.__iter__ # C type that implements __getitem__
|
||||
builtins.memoryview.cast # inspect.signature is incorrect about shape being kw-only
|
||||
sqlite3.dbapi2.Binary.__iter__ # C type that implements __getitem__
|
||||
sqlite3.dbapi2.Binary.cast # inspect.signature is incorrect about shape being kw-only
|
||||
sqlite3.Binary.__iter__ # C type that implements __getitem__
|
||||
sqlite3.Binary.cast # inspect.signature is incorrect about shape being kw-only
|
||||
collections.Coroutine.cr_await
|
||||
collections.Coroutine.cr_code
|
||||
collections.Coroutine.cr_frame
|
||||
|
||||
@@ -29,6 +29,8 @@ collections.ItemsView.__reversed__
|
||||
collections.KeysView.__reversed__
|
||||
collections.ValuesView.__reversed__
|
||||
contextvars.Context.__init__ # Default C __init__ signature is wrong
|
||||
contextlib.AbstractAsyncContextManager.__class_getitem__
|
||||
contextlib.AbstractContextManager.__class_getitem__
|
||||
dataclasses.field
|
||||
enum.Enum._generate_next_value_
|
||||
fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
|
||||
@@ -37,6 +39,8 @@ functools.partialmethod.__get__
|
||||
functools.singledispatchmethod.__call__
|
||||
gettext.install
|
||||
gettext.translation
|
||||
hashlib.sha3_\d+
|
||||
hashlib.shake_\d+
|
||||
hmac.new # Stub is a white lie; see comments in the stub
|
||||
http.server.SimpleHTTPRequestHandler.__init__ # *args is expanded
|
||||
importlib.abc.Traversable.__init__ # Inherits __init__ from typing.Protocol
|
||||
@@ -94,6 +98,10 @@ tkinter.EventType.__new__
|
||||
|
||||
builtins.memoryview.__iter__ # C type that implements __getitem__
|
||||
builtins.memoryview.cast # inspect.signature is incorrect about shape being kw-only
|
||||
sqlite3.dbapi2.Binary.__iter__ # C type that implements __getitem__
|
||||
sqlite3.dbapi2.Binary.cast # inspect.signature is incorrect about shape being kw-only
|
||||
sqlite3.Binary.__iter__ # C type that implements __getitem__
|
||||
sqlite3.Binary.cast # inspect.signature is incorrect about shape being kw-only
|
||||
collections.Coroutine.cr_await
|
||||
collections.Coroutine.cr_code
|
||||
collections.Coroutine.cr_frame
|
||||
|
||||
@@ -14,6 +14,7 @@ _csv.Dialect.__init__ # C __init__ signature is inaccurate
|
||||
_socket.*
|
||||
_threading_local.local.__new__
|
||||
_typeshed.* # Utility types for typeshed, doesn't exist at runtime
|
||||
_weakref.ref.__call__
|
||||
abc.abstractclassmethod # Deprecated, unsupported by mypy, hard to fix. #6552
|
||||
abc.abstractstaticmethod # Deprecated, unsupported by mypy, hard to fix. #6552
|
||||
abc.ABCMeta.__new__ # pytype wants the parameter named cls and not mcls
|
||||
@@ -42,6 +43,8 @@ builtins.classmethod.__get__ # this function can accept no value for the type p
|
||||
builtins.ellipsis # type is not exposed anywhere
|
||||
builtins.function
|
||||
builtins.memoryview.__contains__ # C type that implements __getitem__
|
||||
sqlite3.dbapi2.Binary.__contains__ # C type that implements __getitem__
|
||||
sqlite3.Binary.__contains__ # C type that implements __getitem__
|
||||
builtins.object.__init__ # default C signature is incorrect
|
||||
builtins.property.__get__ # this function can accept no value for the type parameter.
|
||||
builtins.staticmethod.__get__ # this function can accept no value for the type parameter.
|
||||
@@ -163,6 +166,8 @@ numbers.Number.__hash__ # typeshed marks this as abstract but code just sets th
|
||||
optparse.Values.__getattr__ # Some attributes are set in __init__ using setattr
|
||||
pickle.Pickler.persistent_id # C pickler persistent_id is an attribute
|
||||
pickle.Unpickler.persistent_load # C unpickler persistent_load is an attribute
|
||||
pickle._Unpickler\..* # Best effort typing for undocumented internals
|
||||
pickle._Pickler\..* # Best effort typing for undocumented internals
|
||||
poplib.POP3_SSL.stls # bad declaration of inherited function. See poplib.pyi
|
||||
select.poll # Depends on configuration
|
||||
selectors.DevpollSelector # Depends on configuration
|
||||
@@ -184,7 +189,12 @@ tempfile.SpooledTemporaryFile.seekable
|
||||
tempfile.SpooledTemporaryFile.writable
|
||||
threading.Condition.acquire # Condition functions are exported in __init__
|
||||
threading.Condition.release # Condition functions are exported in __init__
|
||||
multiprocessing.dummy.Condition.acquire
|
||||
multiprocessing.dummy.Condition.release
|
||||
threading.Lock # A factory function that returns 'most efficient lock'. Marking it as a function will make it harder for users to mark the Lock type.
|
||||
threading.RLock # Similar to above
|
||||
multiprocessing.dummy.Lock # Similar to above
|
||||
multiprocessing.dummy.RLock # Similar to above
|
||||
tkinter.Misc.grid_propagate # The noarg placeholder is a set value list
|
||||
tkinter.Misc.pack_propagate # The noarg placeholder is a set value list
|
||||
tkinter.Misc.grid_columnconfigure # an empty dict literal is actually a valid default for a TypedDict(total=False) parameter
|
||||
@@ -211,6 +221,7 @@ weakref.ReferenceType.__call__ # C function default annotation is wrong
|
||||
weakref.WeakKeyDictionary.get
|
||||
weakref.WeakKeyDictionary.update
|
||||
weakref.WeakValueDictionary.get
|
||||
weakref.ref.__call__
|
||||
webbrowser.UnixBrowser.remote_action # always overridden in inheriting class
|
||||
webbrowser.UnixBrowser.remote_action_newtab # always overridden in inheriting class
|
||||
webbrowser.UnixBrowser.remote_action_newwin # always overridden in inheriting class
|
||||
@@ -233,6 +244,13 @@ builtins.reveal_locals
|
||||
builtins.reveal_type
|
||||
# GetSetDescriptor that always raises AttributeError
|
||||
builtins.OSError.characters_written
|
||||
# Aliases for OSError
|
||||
builtins.EnvironmentError.characters_written
|
||||
builtins.IOError.characters_written
|
||||
dbm.dumb.error.characters_written
|
||||
os.error.characters_written
|
||||
select.error.characters_written
|
||||
socket.error.characters_written
|
||||
collections.abc.* # Types are re-exported from _collections_abc, so errors should be fixed there
|
||||
distutils.command.check.SilentReporter # only defined if docutils in installed
|
||||
hmac.HMAC.blocksize # use block_size instead
|
||||
|
||||
@@ -9,6 +9,10 @@ locale.nl_langinfo # Function that should be moved to _locale and re-exported c
|
||||
# Allowlist entries that cannot or should not be fixed
|
||||
# ==========
|
||||
|
||||
# Aliases for OSError
|
||||
builtins.WindowsError.characters_written
|
||||
winreg.error.characters_written
|
||||
|
||||
# Modules that do not exist on Windows systems
|
||||
_curses
|
||||
_posixsubprocess
|
||||
|
||||
Reference in New Issue
Block a user