mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 05:41:11 +08:00
allowlist new "not a function" errors (#5155)
stubtest now checks this for overloads as well (previously it didn't, due to some combination of laziness, that this used to short circuit and prevent signature checking, and the fact that these are all not super helpful) Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -27,6 +27,7 @@ concurrent.futures.ProcessPoolExecutor.map
|
||||
contextvars.Context.__init__
|
||||
contextvars.Context.get
|
||||
contextvars.ContextVar.get
|
||||
contextlib.nullcontext # not a function at runtime
|
||||
copy.PyStringMap
|
||||
ctypes.CDLL.__init__
|
||||
dataclasses.field
|
||||
|
||||
@@ -38,6 +38,7 @@ collections.abc.ItemsView.__reversed__
|
||||
collections.abc.KeysView.__reversed__
|
||||
collections.abc.ValuesView.__reversed__
|
||||
concurrent.futures.ProcessPoolExecutor.map
|
||||
contextlib.nullcontext # not a function at runtime
|
||||
contextvars.Context.__init__
|
||||
contextvars.Context.get
|
||||
copy.PyStringMap
|
||||
|
||||
@@ -45,10 +45,10 @@ collections.abc.AsyncGenerator.ag_running
|
||||
collections.abc.ItemsView.__reversed__
|
||||
collections.abc.KeysView.__reversed__
|
||||
collections.abc.ValuesView.__reversed__
|
||||
contextlib.nullcontext # not a function at runtime
|
||||
contextvars.Context.__init__
|
||||
contextvars.Context.get
|
||||
copy.PyStringMap
|
||||
# This was changed in Python 3.9.2.
|
||||
curses.color_pair
|
||||
dataclasses.field
|
||||
dataclasses.InitVar.__class_getitem__ # stubtest bug. doesn't do the right thing with overload + implicit classmethod __class_getitem__
|
||||
|
||||
@@ -24,6 +24,8 @@ _collections_abc.Set.isdisjoint
|
||||
_csv.Dialect.__init__
|
||||
_dummy_threading
|
||||
_importlib_modulespec
|
||||
_operator.attrgetter # not a function at runtime
|
||||
_operator.itemgetter # not a function at runtime
|
||||
_operator.methodcaller
|
||||
_threading_local.local.__new__
|
||||
_typeshed.* # Utility types for typeshed, doesn't exist at runtime
|
||||
@@ -57,7 +59,9 @@ builtins.bytes.__int__
|
||||
builtins.bytes.maketrans
|
||||
builtins.classmethod.__get__
|
||||
builtins.ellipsis
|
||||
builtins.filter # not a function at runtime
|
||||
builtins.function
|
||||
builtins.map # not a function at runtime
|
||||
builtins.memoryview.__contains__
|
||||
builtins.memoryview.__iter__
|
||||
builtins.memoryview.cast # inspect.signature is incorrect about shape being kw-only
|
||||
@@ -66,7 +70,9 @@ builtins.property.__get__
|
||||
builtins.property.fdel
|
||||
builtins.property.fget
|
||||
builtins.property.fset
|
||||
builtins.reversed # not a function at runtime
|
||||
builtins.staticmethod.__get__
|
||||
builtins.zip # not a function at runtime
|
||||
bz2.BZ2Decompressor.__init__
|
||||
bz2.BZ2File.readinto
|
||||
bz2.BZ2File.readlines
|
||||
@@ -247,13 +253,19 @@ ipaddress._BaseAddress.is_unspecified
|
||||
ipaddress._BaseAddress.max_prefixlen
|
||||
ipaddress._BaseAddress.packed
|
||||
ipaddress._BaseNetwork.max_prefixlen
|
||||
itertools.accumulate # not a function at runtime
|
||||
itertools.chain.from_iterable
|
||||
itertools.combinations # not a function at runtime
|
||||
itertools.combinations_with_replacement
|
||||
itertools.compress
|
||||
itertools.count
|
||||
itertools.dropwhile
|
||||
itertools.filterfalse
|
||||
itertools.groupby # not a function at runtime
|
||||
itertools.islice # not a function at runtime
|
||||
itertools.permutations
|
||||
itertools.product # not a function at runtime
|
||||
itertools.repeat # not a function at runtime
|
||||
itertools.starmap
|
||||
itertools.takewhile
|
||||
itertools.zip_longest
|
||||
@@ -302,6 +314,8 @@ netrc.NetrcParseError.__init__
|
||||
netrc.netrc.__init__
|
||||
ntpath.join
|
||||
numbers.Number.__hash__
|
||||
operator.attrgetter # not a function at runtime
|
||||
operator.itemgetter # not a function at runtime
|
||||
operator.methodcaller
|
||||
optparse.HelpFormatter._format__Text
|
||||
optparse.OptionParser.__init__
|
||||
|
||||
Reference in New Issue
Block a user