Commit Graph

762 Commits

Author SHA1 Message Date
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
Alex Waygood
8a98e5a075 check_new_syntax.py: Fix bug in visit_AnnAssign (#8017) 2022-06-03 19:12:11 +02:00
Alex Waygood
acc0167dc1 Fix several new-in-3.11 stubtest errors (#7973) 2022-06-02 18:07:38 -07:00
Alex Waygood
6355cba923 Python 3.11: re.TEMPLATE is back in beta 2 (#8007) 2022-06-01 14:50:37 +02:00
Shantanu
a6924bdcfa Fix CI for Python 3.11 beta 2 (#8005)
Co-authored-by: hauntsaninja <>
2022-06-01 02:28:40 -07:00
Alex Waygood
8e8176b24c mypy_test.py: Skip Flask-SQLAlchemy (#7977) 2022-05-28 10:18:57 -07:00
Alex Waygood
d511312e21 multiprocessing.managers: fix TypeVar usage (#7938)
#7928

`dict()` and `list()` just return empty dictionaries and lists (respectively) if no arguments are supplied:

```python
>>> from multiprocessing.managers import SyncManager
>>> with SyncManager() as s:
...     print(s.dict())
...
{}
```
2022-05-26 07:18:43 -07:00
Shantanu
8968eb4fc9 bdb: update for py311 (#7927) 2022-05-23 09:20:48 +02:00
Jelle Zijlstra
9660ee97ee codecs: add missing function, reflect runtime import * (#7918) 2022-05-22 16:06:21 -07:00
Jelle Zijlstra
18433202ba concurrent.futures: new params in 3.11 (#7919)
fdc0e09c33

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-05-22 15:51:09 -07:00
Shantanu
ceda368abc shutil: update rmtree for py311 (#7925) 2022-05-22 15:40:06 -07:00