mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
Make collections.abcs more consistent with runtime implementation (#10816)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
committed by
GitHub
parent
d2ca658a69
commit
ab75b691c2
@@ -4,11 +4,6 @@
|
||||
|
||||
# Please keep sorted alphabetically
|
||||
|
||||
_collections_abc.AsyncGenerator.ag_await
|
||||
_collections_abc.AsyncGenerator.ag_code
|
||||
_collections_abc.AsyncGenerator.ag_frame
|
||||
_collections_abc.AsyncGenerator.ag_running
|
||||
asyncio.__all__
|
||||
builtins.dict.get
|
||||
collections\.ChainMap\.fromkeys # https://github.com/python/mypy/issues/17023
|
||||
http.client.HTTPConnection.response_class # the actual type at runtime is abc.ABCMeta
|
||||
@@ -193,16 +188,6 @@ _collections_abc.AsyncIterator.__anext__
|
||||
_collections_abc.ByteString
|
||||
|
||||
_collections_abc.Callable # Typing-related weirdness
|
||||
|
||||
# Coroutine and Generator properties are added programmatically
|
||||
_collections_abc.Coroutine.cr_await
|
||||
_collections_abc.Coroutine.cr_code
|
||||
_collections_abc.Coroutine.cr_frame
|
||||
_collections_abc.Coroutine.cr_running
|
||||
_collections_abc.Generator.gi_code
|
||||
_collections_abc.Generator.gi_frame
|
||||
_collections_abc.Generator.gi_running
|
||||
_collections_abc.Generator.gi_yieldfrom
|
||||
_collections_abc.Mapping.get # Adding None to the Union messed up mypy
|
||||
_collections_abc.Sequence.index # Supporting None in end is not mandatory
|
||||
|
||||
|
||||
@@ -59,22 +59,10 @@ tkinter.tix.wantobjects
|
||||
builtins.input # Incorrect default value in text signature, fixed in 3.10
|
||||
collections.AsyncGenerator.__anext__ # async at runtime, deliberately not in the stub, see #7491
|
||||
collections.AsyncGenerator.aclose # async at runtime, deliberately not in the stub, see #7491
|
||||
collections.AsyncGenerator.ag_await
|
||||
collections.AsyncGenerator.ag_code
|
||||
collections.AsyncGenerator.ag_frame
|
||||
collections.AsyncGenerator.ag_running
|
||||
collections.AsyncGenerator.asend # async at runtime, deliberately not in the stub, see #7491. Pos-only differences also.
|
||||
collections.AsyncIterator.__anext__ # async at runtime, deliberately not in the stub, see #7491
|
||||
collections.ByteString # see comments in py3_common.txt
|
||||
collections.Callable
|
||||
collections.Coroutine.cr_await
|
||||
collections.Coroutine.cr_code
|
||||
collections.Coroutine.cr_frame
|
||||
collections.Coroutine.cr_running
|
||||
collections.Generator.gi_code
|
||||
collections.Generator.gi_frame
|
||||
collections.Generator.gi_running
|
||||
collections.Generator.gi_yieldfrom
|
||||
collections.Mapping.get # Adding None to the Union messed up mypy
|
||||
collections.Sequence.index # Supporting None in end is not mandatory
|
||||
xxsubtype # module missing from the stubs
|
||||
|
||||
@@ -50,22 +50,10 @@ typing._SpecialForm.__mro_entries__ # Exists at runtime, but missing from stubs
|
||||
builtins.input # Incorrect default value in text signature, fixed in 3.10
|
||||
collections.AsyncGenerator.__anext__ # async at runtime, deliberately not in the stub, see #7491
|
||||
collections.AsyncGenerator.aclose # async at runtime, deliberately not in the stub, see #7491
|
||||
collections.AsyncGenerator.ag_await
|
||||
collections.AsyncGenerator.ag_code
|
||||
collections.AsyncGenerator.ag_frame
|
||||
collections.AsyncGenerator.ag_running
|
||||
collections.AsyncGenerator.asend # async at runtime, deliberately not in the stub, see #7491. Pos-only differences also.
|
||||
collections.AsyncIterator.__anext__ # async at runtime, deliberately not in the stub, see #7491
|
||||
collections.ByteString # see comments in py3_common.txt
|
||||
collections.Callable
|
||||
collections.Coroutine.cr_await
|
||||
collections.Coroutine.cr_code
|
||||
collections.Coroutine.cr_frame
|
||||
collections.Coroutine.cr_running
|
||||
collections.Generator.gi_code
|
||||
collections.Generator.gi_frame
|
||||
collections.Generator.gi_running
|
||||
collections.Generator.gi_yieldfrom
|
||||
collections.Mapping.get # Adding None to the Union messed up mypy
|
||||
collections.Sequence.index # Supporting None in end is not mandatory
|
||||
xxsubtype # module missing from the stubs
|
||||
@@ -141,7 +129,6 @@ tkinter.tix.Shell
|
||||
tkinter.tix.TclVersion
|
||||
tkinter.tix.TkVersion
|
||||
|
||||
|
||||
# ============================================================
|
||||
# Allowlist entries that cannot or should not be fixed; >= 3.9
|
||||
# ============================================================
|
||||
|
||||
Reference in New Issue
Block a user