collections/typing: fix various arg names (#4258)

This feels nervous, but if it passes unit tests it's unlikely to break
anything
This commit is contained in:
Shantanu
2020-06-28 12:27:21 -07:00
committed by GitHub
parent 0dd3258ed2
commit fe58699ca5
4 changed files with 16 additions and 65 deletions

View File

@@ -48,7 +48,6 @@ smtpd.SMTPChannel.__init__
smtpd.SMTPServer.__init__
sre_compile.dis
ssl.SSLSocket.__init__
typing.AbstractSet.isdisjoint
typing.Coroutine.cr_await
typing.Coroutine.cr_code
typing.Coroutine.cr_frame
@@ -61,20 +60,10 @@ typing.Generator.gi_yieldfrom
typing.GenericMeta.__new__
typing.IO.closed # Incorrect definition in CPython, fixed in bpo-39493
typing.Mapping.get
typing.MutableMapping.pop
typing.MutableMapping.setdefault
typing.MutableSequence.append
typing.MutableSequence.extend
typing.MutableSequence.insert
typing.MutableSequence.remove
typing.MutableSet.add
typing.MutableSet.discard
typing.MutableSet.remove
typing.NamedTuple.__new__
typing.NamedTuple._asdict
typing.NamedTuple._make
typing.NamedTuple._replace
typing.Sequence.count
typing.Sequence.index
typing.runtime_checkable
unittest.async_case # Added in Python 3.8

View File

@@ -39,7 +39,6 @@ secrets.SystemRandom.getstate
smtplib.SMTP.sendmail
sre_compile.dis
ssl.SSLSocket.__init__
typing.AbstractSet.isdisjoint
typing.AsyncGenerator.ag_await
typing.AsyncGenerator.ag_code
typing.AsyncGenerator.ag_frame
@@ -56,20 +55,10 @@ typing.Generator.gi_yieldfrom
typing.GenericMeta.__new__
typing.IO.closed # Incorrect definition in CPython, fixed in bpo-39493
typing.Mapping.get
typing.MutableMapping.pop
typing.MutableMapping.setdefault
typing.MutableSequence.append
typing.MutableSequence.extend
typing.MutableSequence.insert
typing.MutableSequence.remove
typing.MutableSet.add
typing.MutableSet.discard
typing.MutableSet.remove
typing.NamedTuple.__new__
typing.NamedTuple._asdict
typing.NamedTuple._make
typing.NamedTuple._replace
typing.Sequence.count
typing.Sequence.index
typing.runtime_checkable
unittest.async_case # Added in Python 3.8

View File

@@ -32,8 +32,8 @@ asyncio.tasks.Task.print_stack
builtins.bytearray.__float__
builtins.bytearray.__int__
builtins.bytearray.append
builtins.bytearray.extend
builtins.bytearray.maketrans
builtins.bytearray.remove
builtins.bytes.__float__
builtins.bytes.__int__
builtins.bytes.maketrans
@@ -79,7 +79,6 @@ collections.Callable
collections.ChainMap.get
collections.ChainMap.maps
collections.ChainMap.new_child
collections.ChainMap.pop
collections.Coroutine.cr_await
collections.Coroutine.cr_code
collections.Coroutine.cr_frame
@@ -90,18 +89,7 @@ collections.Generator.gi_frame
collections.Generator.gi_running
collections.Generator.gi_yieldfrom
collections.Mapping.get
collections.MutableMapping.pop
collections.MutableMapping.setdefault
collections.MutableSequence.append
collections.MutableSequence.extend
collections.MutableSequence.insert
collections.MutableSequence.remove
collections.MutableSet.add
collections.MutableSet.discard
collections.MutableSet.remove
collections.Sequence.count
collections.Sequence.index
collections.Set.isdisjoint
collections.abc.Callable
collections.abc.Coroutine.cr_await
collections.abc.Coroutine.cr_code
@@ -112,18 +100,7 @@ collections.abc.Generator.gi_frame
collections.abc.Generator.gi_running
collections.abc.Generator.gi_yieldfrom
collections.abc.Mapping.get
collections.abc.MutableMapping.pop
collections.abc.MutableMapping.setdefault
collections.abc.MutableSequence.append
collections.abc.MutableSequence.extend
collections.abc.MutableSequence.insert
collections.abc.MutableSequence.remove
collections.abc.MutableSet.add
collections.abc.MutableSet.discard
collections.abc.MutableSet.remove
collections.abc.Sequence.count
collections.abc.Sequence.index
collections.abc.Set.isdisjoint
collections.deque.__hash__
concurrent.futures.Executor.map
concurrent.futures._base.Executor.map
@@ -443,12 +420,8 @@ weakref.ProxyType.__getattr__
weakref.ReferenceType.__call__
weakref.WeakKeyDictionary.__init__
weakref.WeakKeyDictionary.get
weakref.WeakKeyDictionary.pop
weakref.WeakKeyDictionary.setdefault
weakref.WeakKeyDictionary.update
weakref.WeakValueDictionary.get
weakref.WeakValueDictionary.pop
weakref.WeakValueDictionary.setdefault
webbrowser.Mozilla.raise_opts
webbrowser.UnixBrowser.raise_opts
webbrowser.UnixBrowser.remote_action