Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
ef2d0ac
Upgrade mypy
Dec 16, 2021
865a992
get rid of unittest._log for now
Dec 16, 2021
0377def
allow pickle
Dec 16, 2021
f9628a0
allow DynamicClassAttribute
Dec 16, 2021
f35df4d
allow characters_written
Dec 16, 2021
339cd00
allow pymysql
Dec 16, 2021
c372241
trigger ci on all third party stubs
Dec 16, 2021
adb5315
Update tests/stubtest_allowlists/py310.txt
hauntsaninja Dec 16, 2021
a29ad29
allow babel
Dec 16, 2021
a6b085c
allow hdbcli
Dec 16, 2021
984f57f
Revert "trigger ci on all third party stubs"
Dec 16, 2021
b2fa7df
[temporary] shard stubtest third party
Dec 16, 2021
d22bf40
allow sqlite
Dec 16, 2021
19fea4d
un-allow mysqlclient
Dec 16, 2021
43cd55c
allow html5lib
Dec 16, 2021
a590d66
un-allow waitress
Dec 16, 2021
4b3358e
also allow waitress
Dec 16, 2021
fe7cd0c
mypy_extensions: fix NoReturn, remove inaccurate comment
Dec 16, 2021
c67672b
update paramiko allowlist
Dec 16, 2021
43205b3
more waitress
Dec 16, 2021
74ed3fa
import
Dec 16, 2021
5b7c182
update requests allowlist
Dec 16, 2021
3000ed5
oops another waitress
Dec 16, 2021
8d3279e
ignore missing stub in requests
Dec 16, 2021
da16408
Merge branch 'mypyext' into upgrade-mypy
Dec 16, 2021
43ed4a8
Merge remote-tracking branch 'upstream/master' into upgrade-mypy
Dec 16, 2021
2d84696
use stubtest 0.920
Dec 16, 2021
9af991a
Revert "[temporary] shard stubtest third party"
Dec 16, 2021
8d49a5b
comment
Dec 16, 2021
e57fce4
undo unittest._log hiding
Dec 16, 2021
54a7ba8
Update .github/workflows/tests.yml
JelleZijlstra Dec 16, 2021
8d896fe
allow windows errors
Dec 16, 2021
e5c75d8
allow remaining
Dec 16, 2021
655e564
allow
Dec 16, 2021
5a6e0f7
allow
Dec 17, 2021
63e319f
one more
Dec 17, 2021
c4ba18f
Update tests/stubtest_allowlists/py310.txt
Akuli Dec 17, 2021
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
Prev Previous commit
Next Next commit
allow
  • Loading branch information
hauntsaninja committed Dec 17, 2021
commit 5a6e0f7e978bb1e1768d8b4ef21164250e6c8eb3
4 changes: 4 additions & 0 deletions tests/stubtest_allowlists/linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ msvcrt
winreg
winsound

# Aliases for OSError
posix.error.characters_written
resource.error.characters_written

# NamedTuple like, but not actually NamedTuples (PyStructSequence)
posix.[a-z]+_(param|result)._(asdict|make|replace)

Expand Down
2 changes: 2 additions & 0 deletions tests/stubtest_allowlists/py310.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ functools.partialmethod.__get__
functools.singledispatchmethod.__call__
gettext.install
gettext.translation
hashlib.sha3_\d+
hashlib.shake_\d+
Comment thread
Akuli marked this conversation as resolved.
Outdated
Comment thread
Akuli marked this conversation as resolved.
Outdated
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
Expand Down
6 changes: 6 additions & 0 deletions tests/stubtest_allowlists/py36.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ builtins.memoryview.__iter__ # C type that implements __getitem__
builtins.memoryview.cast # inspect.signature is incorrect about shape being kw-only
sqlite3.dbapi2.Binary.__iter__ # C type that implements __getitem__
sqlite3.dbapi2.Binary.cast # inspect.signature is incorrect about shape being kw-only
sqlite3.Binary.__iter__ # C type that implements __getitem__
sqlite3.Binary.cast # inspect.signature is incorrect about shape being kw-only

sqlite3.OptimizedUnicode.maketrans
sqlite3.dbapi2.OptimizedUnicode.maketrans

collections.Coroutine.cr_await
collections.Coroutine.cr_code
collections.Coroutine.cr_frame
Expand Down
7 changes: 7 additions & 0 deletions tests/stubtest_allowlists/py37.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ typing.NamedTuple._replace
typing._SpecialForm.__init__
typing._SpecialForm.__new__
typing.runtime_checkable
typing.Text.maketrans
unittest._log # New in Python 3.9
unittest.async_case # Added in Python 3.8
uuid.UUID.int
Expand All @@ -67,6 +68,12 @@ builtins.memoryview.__iter__ # C type that implements __getitem__
builtins.memoryview.cast # inspect.signature is incorrect about shape being kw-only
sqlite3.dbapi2.Binary.__iter__ # C type that implements __getitem__
sqlite3.dbapi2.Binary.cast # inspect.signature is incorrect about shape being kw-only
sqlite3.Binary.__iter__ # C type that implements __getitem__
sqlite3.Binary.cast # inspect.signature is incorrect about shape being kw-only

sqlite3.OptimizedUnicode.maketrans
sqlite3.dbapi2.OptimizedUnicode.maketrans

collections.Coroutine.cr_await
collections.Coroutine.cr_code
collections.Coroutine.cr_frame
Expand Down
2 changes: 2 additions & 0 deletions tests/stubtest_allowlists/py38.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ builtins.memoryview.__iter__ # C type that implements __getitem__
builtins.memoryview.cast # inspect.signature is incorrect about shape being kw-only
sqlite3.dbapi2.Binary.__iter__ # C type that implements __getitem__
sqlite3.dbapi2.Binary.cast # inspect.signature is incorrect about shape being kw-only
sqlite3.Binary.__iter__ # C type that implements __getitem__
sqlite3.Binary.cast # inspect.signature is incorrect about shape being kw-only
collections.Coroutine.cr_await
collections.Coroutine.cr_code
collections.Coroutine.cr_frame
Expand Down
4 changes: 4 additions & 0 deletions tests/stubtest_allowlists/py39.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ functools.partialmethod.__get__
functools.singledispatchmethod.__call__
gettext.install
gettext.translation
hashlib.sha3_\d+
hashlib.shake_\d+
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
Expand Down Expand Up @@ -98,6 +100,8 @@ builtins.memoryview.__iter__ # C type that implements __getitem__
builtins.memoryview.cast # inspect.signature is incorrect about shape being kw-only
sqlite3.dbapi2.Binary.__iter__ # C type that implements __getitem__
sqlite3.dbapi2.Binary.cast # inspect.signature is incorrect about shape being kw-only
sqlite3.Binary.__iter__ # C type that implements __getitem__
sqlite3.Binary.cast # inspect.signature is incorrect about shape being kw-only
collections.Coroutine.cr_await
collections.Coroutine.cr_code
collections.Coroutine.cr_frame
Expand Down
4 changes: 0 additions & 4 deletions tests/stubtest_allowlists/py3_common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ enum.Enum.value
enum.Flag.name
enum.Flag.value
enum.IntEnum.value
hashlib.sha3_\d+
hashlib.shake_\d+
http.HTTPStatus.description # set in __new__
http.HTTPStatus.phrase # set in __new__
http.client.HTTPConnection.response_class # the actual type at runtime is abc.ABCMeta
Expand Down Expand Up @@ -251,8 +249,6 @@ builtins.EnvironmentError.characters_written
builtins.IOError.characters_written
dbm.dumb.error.characters_written
os.error.characters_written
posix.error.characters_written
resource.error.characters_written
select.error.characters_written
socket.error.characters_written
Comment thread
hauntsaninja marked this conversation as resolved.
collections.abc.* # Types are re-exported from _collections_abc, so errors should be fixed there
Expand Down