Skip to content
Prev Previous commit
Next Next commit
Add allowlist entries
  • Loading branch information
AlexWaygood committed Dec 9, 2021
commit 5a4624a29b161c998dcd6f2dbf16bc812ec358e2
1 change: 1 addition & 0 deletions tests/stubtest_allowlists/py36.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ enum.Enum._generate_next_value_
fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
hmac.HMAC.__init__
importlib.metadata # Added in 3.8
importlib.metadata._meta # Added in 3.10
Copy link
Copy Markdown
Collaborator

@srittau srittau Dec 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove these allowlist overrides, once mypy 0.920 gets released, as it includes python/mypy#11069.

importlib.resources # Added in 3.7
io.StringIO.readline
ipaddress._BaseNetwork.__init__
Expand Down
1 change: 1 addition & 0 deletions tests/stubtest_allowlists/py37.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ fractions.Fraction.__new__ # overload is too complicated for stubtest to resolv
hmac.HMAC.__init__
http.server.SimpleHTTPRequestHandler.__init__ # *args is expanded
importlib.metadata # Added in 3.8
importlib.metadata._meta # Added in 3.10
ipaddress._BaseNetwork.__init__
json.loads
multiprocessing.shared_memory
Expand Down
1 change: 1 addition & 0 deletions tests/stubtest_allowlists/py38.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ gettext.install # codeset default value is ['unspecified'] so can't be specifie
gettext.translation # codeset default value is ['unspecified'] so can't be specified
hmac.new # Stub is a white lie; see comments in the stub
http.server.SimpleHTTPRequestHandler.__init__ # *args is expanded
importlib.metadata._meta # Added in 3.10
ipaddress.IPv4Interface.hostmask
ipaddress.IPv6Interface.hostmask
ipaddress._BaseNetwork.broadcast_address
Expand Down
1 change: 1 addition & 0 deletions tests/stubtest_allowlists/py39.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ gettext.translation
hmac.new # Stub is a white lie; see comments in the stub
http.server.SimpleHTTPRequestHandler.__init__ # *args is expanded
importlib.abc.Traversable.__init__ # Inherits __init__ from typing.Protocol
importlib.metadata._meta # Added in 3.10
ipaddress.IPv4Interface.hostmask
ipaddress.IPv6Interface.hostmask
ipaddress._BaseNetwork.broadcast_address
Expand Down