mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 05:22:23 +08:00
Fix stubtest complaints for various .get() methods (#10690)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
# Uncategorised, from Python 3.12
|
||||
collections.UserDict.get
|
||||
enum.Enum.__signature__
|
||||
enum.EnumMeta.__call__
|
||||
enum.EnumType.__call__
|
||||
|
||||
@@ -26,7 +26,6 @@ asyncio.futures.Future.__init__ # Usually initialized from c object
|
||||
builtins.dict.get
|
||||
builtins.ellipsis # type is not exposed anywhere
|
||||
builtins.function
|
||||
collections.ChainMap.get # Adding None to the underlying Mapping Union messed up mypy
|
||||
collections.ChainMap.fromkeys # Runtime has *args which can really only be one argument
|
||||
collections.UserList.sort # Runtime has *args but will error if any are supplied
|
||||
configparser.SectionProxy.__getattr__ # SectionProxy can have arbitrary attributes when custom converters are used
|
||||
@@ -129,9 +128,7 @@ typing(_extensions)?\.IO\.__next__ # Added because IO streams are iterable. See
|
||||
typing.type_check_only # typing decorator that is not available at runtime
|
||||
unittest.mock.patch # It's a complicated overload and I haven't been able to figure out why stubtest doesn't like it
|
||||
urllib.request.HTTPPasswordMgrWithPriorAuth.__init__ # Args are passed as is to super, so super args are specified
|
||||
weakref.WeakKeyDictionary.get
|
||||
weakref.WeakKeyDictionary.update
|
||||
weakref.WeakValueDictionary.get
|
||||
weakref.WeakValueDictionary.update
|
||||
xml.etree.ElementTree.XMLParser.__init__ # Defined in C so has general signature
|
||||
xml.etree.cElementTree.XMLParser.__init__ # Defined in C so has general signature
|
||||
|
||||
Reference in New Issue
Block a user