8000 allowlist new "not a function" errors by hauntsaninja · Pull Request #5155 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

8000 allowlist new "not a function" errors #5155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/stubtest_whitelists/py37.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,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
Expand Down
1 change: 1 addition & 0 deletions tests/stubtest_whitelists/py38.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,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
Expand Down
2 changes: 1 addition & 1 deletion tests/stubtest_whitelists/py39.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,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__
Expand Down
14 changes: 14 additions & 0 deletions tests/stubtest_whitelists/py3_common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -61,7 +63,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
Expand All @@ -70,7 +74,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
Expand Down Expand Up @@ -251,13 +257,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
Expand Down Expand Up @@ -306,6 +318,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__
Expand Down
0