Shantanu
19beaba9e7
Disallow adding stubs for types- packages ( #8579 )
...
This would lead to confusion. The types prefix is special cased in
various ways in stub_uploader
2022-08-20 15:44:17 -07:00
Alex Waygood
38bc0ec0e6
mypy_test.py: simplify argument parsing (#8577 )
2022-08-20 21:32:17 +01:00
Kevin Kirsche
8c51fab4e2
Support extras in stubtest_third_party.py ( #8467 )
2022-08-18 14:12:36 -07:00
Rebecca Chen
1e1a586893
Update pytype_test to be compatible with the latest pytype version. ( #8551 )
...
We moved some files around =)
2022-08-17 19:18:33 -07:00
Jelle Zijlstra
5477097c6d
Upgrade pyright ( #8541 )
2022-08-12 20:24:51 -07:00
Alex Waygood
1ec57121e3
Unpin stubtest from 3.10.5 ( #8523 )
2022-08-12 10:01:26 +02:00
Kevin Kirsche
bd7a02fad4
refactor: prefer f-strings to other format/concatentation styles ( #8474 )
2022-08-03 14:04:27 +02:00
Nikita Sobolev
1bd1625c36
importlib: SimplePath: __div__ -> __truediv__ on 3.10 ( #8451 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-08-02 07:15:46 +01:00
Alex Waygood
4414246a15
Clean up a few Python 2 remnants ( #8452 )
2022-07-31 19:19:18 +01:00
Alex Waygood
87fc724cef
ctypes: pointer is a function, not a class (#8446 )
2022-07-31 15:29:13 +02:00
Kevin Kirsche
f550c24886
Add multiprocessing.popen_spawn_win32 submodule ( #8428 )
2022-07-29 16:02:15 +01:00
Kevin Kirsche
17e3cf99a4
Add multiprocessing.popen_spawn_posix submodule ( #8427 )
2022-07-29 15:52:49 +01:00
Kevin Kirsche
1f0e641521
Add multiprocessing.popen_forkserver submodule ( #8425 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-07-28 17:26:06 +01:00
Kevin Kirsche
087fb6b96d
Add multiprocessing.popen_fork submodule ( #8420 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-07-28 16:19:43 +01:00
Kevin Kirsche
177bbf7864
Add curses.has_key submodule ( #8421 )
2022-07-28 14:39:44 +01:00
Alex Waygood
78e0b3cfca
Stubtest: allowlist all of distutils on 3.11 ( #8411 )
...
Fixes #8410
2022-07-27 20:27:38 +01:00
Alex Waygood
23c4b124a6
Stubtest allowlists: put all the fake __iter__ methods together ( #8368 )
2022-07-22 18:08:13 +01:00
Alex Waygood
d1e80a724a
Add some missing Windows constants ( #8346 )
2022-07-20 17:45:36 +01:00
Shantanu
85077b273d
Show all packages in environment ( #8341 )
2022-07-19 19:42:52 -07:00
Sebastian Rittau
ef443b6359
Re-enable SQLAlchemy mypy tests ( #8282 )
...
These used to crash if run twice in succession locally, but the crash has been fixed on mypy 0.971
2022-07-19 16:46:39 +01:00
Alex Waygood
fceccd217c
Upgrade mypy to 0.971 ( #8332 )
2022-07-19 16:27:05 +01:00
Shantanu
5ef20e8021
Use packaging to parse versions ( #8314 )
...
packaging is the standard tool for dealing with versions and
requirements. This allows us to easily support all PEP 508 specs.
packaging also has good error messages, so I don't create our own here.
This lets us get rid of our handrolled half parser and sanity checks.
I kept the whitespace consistency check, since that's just a formatting
lint and isn't testing the correctness of parsing (which we now
definitely do correctly).
2022-07-17 12:35:32 -07:00
Sebastian Rittau
91fd79c158
Updates for Python 3.11.0b4 ( #8288 )
2022-07-13 13:10:20 +02:00
Jelle Zijlstra
0306754f5f
os: pos-only params for various functions ( #8284 )
2022-07-12 12:30:19 -07:00
Jelle Zijlstra
2a1b33df9f
os: Params for posix_fallocate and posix_fadvise are pos-only ( #8283 )
...
90a6e56e56/Modules/posixmodule.c (L10845)
2022-07-12 12:19:41 -07:00
Alex Waygood
78d96cd17e
Drop support for Python 2 ( #8272 )
2022-07-12 09:08:56 +02:00
Spencer Brown
29c17ffb47
Improve tkinter.simpledialog ( #8243 )
2022-07-10 19:52:16 +03:00
Sebastian Rittau
9a5c865034
Drop support for Python 3.6, part 1 ( #8250 )
...
* Document that typeshed support 3.7+.
* Don't run tests on Python 3.6.
* Remove Python 3.6 allow lists.
* Merge common allowlist items.
Part of #6189
2022-07-07 14:42:02 +02:00
Alex Waygood
73974e974d
Improve warnings.catch_warnings ( #8229 )
2022-07-04 17:05:21 +02:00
Alex Waygood
f69f711d5a
subprocess.Popen: __new__ -> __init__ (#8203 )
2022-06-28 20:11:03 +02:00
Alex Waygood
f812d71ffa
Improve errno stubs on Windows and MacOS ( #8142 )
2022-06-26 08:29:02 +05:30
Alex Waygood
64d91ef414
mypy_test.py: Add command-line argument to enable selecting which parts of the test to run ( #8143 )
2022-06-23 10:21:32 -07:00
Alex Waygood
610d2908bd
mypy_test.py: Allow passing in multiple platforms from the command line ( #8138 )
2022-06-22 20:13:01 +01:00
Alex Waygood
15a17d1301
mypy_test.py: Add argument validation, improve type hints ( #8135 )
2022-06-22 18:03:29 +01:00
Alex Waygood
09141ec3dc
mypy_test.py: Fix argument-parsing for --python-version ( #8134 )
...
* mypy_test.py: Fix argument-parsing for `--python-version`
* Bump min version required in the README
2022-06-22 15:08:56 +01:00
Alex Waygood
a527bf27d5
Run mypy on the scripts directory in CI ( #8133 )
2022-06-22 14:13:38 +01:00
Shantanu
305f10b808
stubtest: per project --ignore-missing-stub ( #8122 )
2022-06-21 05:52:24 -07:00
Alex Waygood
c6de37df53
Overhaul socket stubs on Windows and MacOS ( #8106 )
...
Reduce the `socket` allowlists for these platforms to a handful of missing constants
2022-06-20 20:11:50 +01:00
Alex Waygood
bae4fd2209
Upgrade pyright ( #8110 )
2022-06-20 17:07:43 +01:00
Shantanu
a9cd83adf9
Silence mysterious 3.10.5 stubtest failure ( #8102 )
...
Fixes #8098 (along with #8099 )
2022-06-19 00:58:43 -07:00
Shantanu
b7f8d847be
socket: consistency between constants and enums ( #8099 )
...
This matches what happens at runtime, from Enum._convert_
Helps with #8098 . Closes #5696 .
2022-06-19 08:57:55 +01:00
Shantanu
64181e8dad
stubtest: use separate table in METADATA.toml ( #8096 )
2022-06-19 00:43:24 -07:00
Alex Waygood
6b0c8df9ec
Upgrade pyright, improve pyright config files ( #8072 )
2022-06-16 18:50:50 +01:00
Alex Waygood
5fa31e6759
Remove mypy error codes from the test_cases directory ( #8083 )
2022-06-15 15:31:45 +01:00
Alex Waygood
01d5e28ff7
Fix miscellaneous invalid TypeVar usages ( #8074 )
2022-06-14 08:48:41 -07:00
Alex Waygood
67828bd598
xml.etree.ElementTree.Element: remove inheritance from MutableSequence (#8056 )
2022-06-13 12:22:28 +02:00
Sebastian Rittau
d8c0f25f0d
Explain the no_longer_updated METADATA field ( #8037 )
2022-06-08 18:46:41 +02:00
Alex Waygood
e7a5b7a762
Fix various __all__-related errors and omissions ( #8031 )
2022-06-07 23:29:55 +01:00
Alex Waygood
9db96967cc
asyncio.sslproto: More updates for py311 (#8022 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-06-06 15:12:22 -07:00
Alex Waygood
0ce825b5a8
Add unittest features new in Python 3.11 ( #8020 )
...
python/cpython@086c6b1
2022-06-04 16:27:52 +01:00