Anton Grübel
0085539df3
Add missing type hints in http.client ( #5734 )
...
* Add missing type hints in http.client
* Add http.client.HTTPConnection.response_class to exclude list
2021-07-08 14:43:42 +03:00
Sebastian Rittau
2b64f54008
Support @tests/requirements-stubtest.txt files ( #5704 )
2021-06-28 19:42:27 +02:00
github-actions[bot]
1fb100dca4
Remove unused stubtest allowlist entries ( #5697 )
...
Co-authored-by: hauntsaninja <hauntsaninja@users.noreply.github.com >
2021-06-26 21:28:00 -07:00
Jake Bailey
96429cd4bd
Update pyright to 1.1.152 ( #5685 )
2021-06-24 00:11:33 +02:00
Akuli
11b99e1141
@python2 nits ( #5672 )
...
* tiny tests/mypy_test.py cleanup
* try to make CONTRIBUTING.md less confusing
2021-06-21 21:42:45 +03:00
Sebastian Rittau
68dc2d132b
Move Python 2-only stubs to @python2 directory ( #5660 )
2021-06-21 11:28:25 -07:00
Sebastian Rittau
a319ba4604
pkg_resources is part of setuptools ( #5669 )
2021-06-21 15:19:18 +01:00
Sebastian Rittau
bc2ec748f6
Move routes stubs to @python2 directory ( #5637 )
...
* Move routes stubs to @python2 directory
* Ignore Python-2-only stubs for stubtest
* Use standard idiom for re-exporting items
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-06-18 17:05:23 +03:00
Sebastian Rittau
3368258e4a
Add distributions arg to third-party stubtest ( #5628 )
...
* Add distributions arg to third-party stubtest
Make stubtest_third_party.py executable
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-06-13 14:53:29 +03:00
Shantanu
7244ea1f71
Test third party stubs with stubtest ( #5615 )
2021-06-13 00:17:40 +02:00
Shantanu
e66ceceed0
Rename whitelist to allowlist ( #5614 )
...
Resolves #4436
I want to add stubtest for third party stubs, and figured it'd be easier
to make this change now.
Co-authored-by: hauntsaninja <>
2021-06-10 14:33:44 -07:00
Jake Bailey
c4dc935b3f
Add a stricter config pass for pyright ( #5612 )
2021-06-10 20:10:12 +02:00
Akuli
63fd1688c5
Delete attrs ( #5585 )
...
Closes #5581
2021-06-08 16:02:38 +02:00
github-actions[bot]
af068d6d3c
Remove unused stubtest whitelist entries ( #5563 )
2021-05-31 22:30:19 -07:00
Sebastian Rittau
6ee67483a3
Rework socket ( #5545 )
...
* Extract _socket.pyi from socket.pyi.
* Extract _socket.socket from socket.socket.
* Fix socket.family annotation.
* Annotate SocketIO properly.
* SocketType is an alias of _socket.socket.
* Sort items in socket.pyi in the same order as in socket.py.
* Remove socket.EINTR.
* Use _typeshed.WriteableBuffer instead of custom alias.
* Add errorTab (Windows only).
* Add _socket.dup().
* Mark positional-only argments.
* Remove constructors from socket exceptions.
* socket.timeout is an alias for TimeoutError, starting with Python 3.10.
* Use PEP 604 in changed lines.
* Add alias for fileno arguments.
* getaddrinfo() port can be bytes.
* Explicitly override some SSLSocket methods.
* Allow ReadableBuffer in _CMSG arguments.
2021-05-30 20:17:33 +02:00
Jelle Zijlstra
e47eff31f7
bump various dependencies ( #5551 )
2021-05-29 20:05:09 +03:00
Sebastian Rittau
9795bae6f7
Remove mypy_test_suite ( #5543 )
...
Closes : #5540
2021-05-28 05:00:48 -07:00
github-actions[bot]
9b2f158fdb
Remove unused stubtest whitelist entries ( #5531 )
2021-05-25 21:43:12 -07:00
Shantanu
05f91f73b3
Re-enable mypy test suite ( #5526 )
...
Fixes #5505 , in combination with https://github.com/python/mypy/pull/10527
Co-authored-by: hauntsaninja <>
2021-05-25 09:42:18 +01:00
Jake Bailey
6d0b7889d3
Bump to pyright 1.1.142 ( #5515 )
2021-05-21 10:32:22 -07:00
Sebastian Rittau
21e647a184
Document _typeshed ( #5501 )
...
* Document _typeshed
Closes : #5486
* Allow README.md files
2021-05-19 22:15:21 +03:00
Sebastian Rittau
54a0bd80ee
Add a comment about _typeshed to VERSIONS ( #5447 )
2021-05-19 11:01:33 +02:00
Jake Bailey
0351168b40
Bump pyright to 1.1.140 ( #5480 )
2021-05-16 19:20:18 -07:00
Sebastian Rittau
35acd2ad6f
check_consistent: allow dots in module names ( #5472 )
2021-05-16 11:01:00 -07:00
hatal175
b8e5f637b9
Stubtest fixes ( #5391 )
2021-05-13 18:20:55 -07:00
Sebastian Rittau
3ba35f3552
Split the tests section, extend ToC ( #5433 )
...
Move and consolidate venv setup and running isort/black/flake8 into
separate sections and link those sections from the ToC. Also extend
those sections slightly.
Move the tests section into a separate file.
Make venv name in pre-commit match name in CONTRIBUTING.
2021-05-13 15:41:04 +02:00
github-actions[bot]
15e31fe54b
Remove unused stubtest whitelist entries ( #5431 )
2021-05-12 22:22:32 -07:00
Sebastian Rittau
2f30adad19
Remove two files from pytype's exclude list ( #5427 )
2021-05-12 11:58:48 -07:00
Sebastian Rittau
6a4583d0a8
Deprecate pallets stubs ( #5424 )
...
Part of #5423
* Support new metadata fields in check_consistent
2021-05-12 19:17:42 +03:00
Shantanu
6bb1d885c6
time: fix constants availability ( #5419 )
2021-05-12 08:35:39 +02:00
github-actions[bot]
a2d5f72e8a
Remove unused stubtest whitelist entries ( #5418 )
...
Co-authored-by: hauntsaninja <hauntsaninja@users.noreply.github.com >
2021-05-11 22:25:19 -07:00
Shantanu
4df940f96d
Update allowlists ( #5417 )
...
Co-authored-by: hauntsaninja <>
2021-05-11 22:11:48 -07:00
Shantanu
5e6fb40b56
Fix stubtest unused script ( #5411 )
...
Contrary to the comment, this wasn't a mypy_primer issue, nor even a
stubtest issue.
Co-authored-by: hauntsaninja <>
2021-05-11 09:24:37 +03:00
Shantanu
0ac3531a93
Update allowlists ( #5409 )
...
Co-authored-by: hauntsaninja <>
2021-05-10 22:19:31 -07:00
Akuli
272d70cdd2
Fix several problems in stubtest unused ( #5401 )
2021-05-10 18:50:37 +02:00
Sebastian Rittau
1eb64b4372
Mark stdlib modules with upper version bounds ( #5394 )
...
* Mark stdlib modules with upper version bounds
* Add minus to all versions and enforce in check_consistent
* Fix check_consistent and mypy_test to work with new VERSIONS format
2021-05-10 16:29:43 +03:00
hatal175
244fc622e6
Add workflow stubtests for macos ( #5384 )
...
* Add macos to stubtest
* Add general darwin stubtest exception file
* Adding exceptions and platform ifs
2021-05-09 23:24:00 +03:00
hatal175
653191e514
A few linux stubtest fixes ( #5381 )
2021-05-08 12:49:42 -07:00
Shantanu
9cdd5220c2
Update allowlists ( #5376 )
...
Co-authored-by: hauntsaninja <>
2021-05-08 12:48:12 -07:00
hatal175
2dc02ae8a9
Fix stubtest issues ( #5360 )
...
* Fix some stubtest issues
* Remove MADV_SOFT_OFFLINE
2021-05-07 19:10:03 +03:00
Shantanu
4bf4d6adb6
Bump pyright ( #5357 )
...
For #5348
Co-authored-by: hauntsaninja <>
2021-05-06 15:26:24 -07:00
Akuli
e66b7fa660
delete _importlib_modulespec ( #5350 )
...
* delete _importlib_modulespec
* use typing_extensions.runtime_checkable
2021-05-06 17:13:35 +03:00
Sebastian Rittau
d16017ba0d
Drop mypy self test ( #5344 )
...
Closes : #5303
2021-05-06 06:55:49 -07:00
Jake Bailey
a334a29c96
Bump pyright, disable PR/commit commenting for all but one job ( #5347 )
...
* Bump pyright, disable PR/commit commenting for now
* Show comments for 3.9
* And only on Linux
2021-05-05 22:49:21 +03:00
hatal175
461791db27
Fixing stubtest issues ( #5339 )
...
* Fix stubtest issues
2021-05-05 17:23:43 +03:00
Akuli
9f732a128a
enable mypy_test for python 3.10 ( #5341 )
...
* enable mypy_test for python 3.10
* avoid collections.Mapping and collections.MutableMapping, import from typing
2021-05-05 00:09:33 +03:00
Akuli
54699d6cca
change positional-only test to use Python 3.10 ( #5340 )
2021-05-04 13:35:05 -07:00
Akuli
59390469d6
Run stubtest on python 3.10 (attempt 2) ( #5313 )
2021-05-04 11:56:51 -07:00
Akuli
7dffcb5c6a
Revert "run stubtest on python 3.10 ( #5305 )" ( #5311 )
...
This reverts commit 7590506039 .
2021-05-02 12:55:26 -07:00
Akuli
7590506039
run stubtest on python 3.10 ( #5305 )
2021-05-02 17:46:17 +02:00