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
Shantanu
c0aafb9a34
termios: update for py311 ( #7924 )
...
Co-authored-by: hauntsaninja <>
2022-05-22 15:36:50 -07:00
Shantanu
5b1ef8b119
mmap: add MADV_FREE on darwin ( #7923 )
...
Co-authored-by: hauntsaninja <>
2022-05-22 15:30:09 -07:00
Jelle Zijlstra
54c2e23a55
3.11 allowlist: move inspect._ParameterKind.description to wontfix section ( #7920 )
2022-05-22 12:04:11 +03:00
Jelle Zijlstra
3dcfbf3745
urllib.request: add code 308 handler for 3.11 ( #7917 )
...
c379bc5ec9
2022-05-21 14:13:17 -07:00
Jelle Zijlstra
1220a99399
unicodedata: add UCD.is_normalized ( #7915 )
2022-05-21 12:59:44 -07:00
Sebastian Rittau
a412ddb437
Update pyright ( #7914 )
...
Required for #7865
2022-05-21 19:15:06 +01:00
Jelle Zijlstra
ddc6eda10a
symtable: has_exec was removed in 3.9 ( #7911 )
2022-05-21 17:50:27 +02:00
Jelle Zijlstra
39c777f70c
pydoc: 3.11 changes ( #7910 )
2022-05-21 17:49:39 +02:00
Jelle Zijlstra
237b1bb189
binascii.a2b_base64: new param in 3.11 ( #7909 )
...
35b98e38b6
2022-05-21 08:36:03 -07:00
Jelle Zijlstra
9c0c631e46
gettext.install: names is kw-only in 3.11 ( #7908 )
2022-05-21 08:22:34 -07:00
Jelle Zijlstra
8b58371278
subprocess: new params in 3.11 ( #7907 )
2022-05-21 16:07:50 +01:00
Jelle Zijlstra
0198d75153
types: 3.11 (and earlier) fixes ( #7900 )
...
- New attributes in 3.11
- Arguments to CodeType.__init__ are always positional (have fun)
- co_consts can use object instead of Any
2022-05-21 07:37:11 -07:00
Jelle Zijlstra
7576805aee
zipfile: 3.11 fixes ( #7898 )
...
* zipfile: 3.11 fixes
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-05-21 09:22:32 +01:00
Jelle Zijlstra
585517b20e
stubtest: put all the incorrect __get__ sigs together ( #7899 )
2022-05-20 09:47:02 -07:00
Jelle Zijlstra
e7cbde0928
xml: stubtest fixes ( #7890 )
2022-05-20 13:03:45 +02:00
Jelle Zijlstra
26fa57ab78
traceback: update for py311 ( #7886 )
2022-05-19 19:14:12 -07:00
Jelle Zijlstra
0b7df3b2aa
dataclasses: fix and sort stubtest complaints ( #7888 )
2022-05-19 19:13:22 -07:00
Jelle Zijlstra
4220712aab
dis: add adaptive argument for 3.11 ( #7889 )
2022-05-19 18:27:34 -07:00
Jelle Zijlstra
64766c8521
locale: add locale.getencoding ( #7887 )
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com >
2022-05-19 18:20:16 -07:00
Jelle Zijlstra
1ffb1bdc0e
wsgiref: categorise stubtest issues ( #7885 )
2022-05-19 18:10:56 -07:00
Alex Waygood
aa72cb1dcf
Run pyupgrade on the tests directory ( #7880 )
2022-05-19 14:16:53 +01:00