Alex Waygood
4d8ee113fb
Add more return types to the numbers module ( #11353 )
2024-02-01 18:12:41 +00:00
Alex Waygood
c50a641fc8
regr_test.py: Run mypy with --no-incremental ( #11346 )
2024-01-30 08:59:20 -08:00
Alex Waygood
ccc81f224d
Bump various test dependencies ( #11249 )
2024-01-05 14:09:02 -08:00
Alex Waygood
a7c5d8bc14
Ignore Y023 in generated *_pb2.pyi files ( #11246 )
2024-01-05 19:01:54 +01:00
Alex Waygood
f0c6488394
Pin seaborn to 0.13.0 ( #11213 )
...
Closes #11212
2024-01-01 00:24:48 +00:00
Alex Waygood
16933b838e
Bump mypy (and a few other test dependencies) ( #11196 )
2023-12-21 22:57:58 +00:00
Alex Waygood
a08d2d5d66
Use PEP-646 in stubs for asyncio ( #11015 )
2023-12-08 22:59:42 +00:00
Alex Waygood
250fcd3067
Bump pytype test dependency to 2023.12.8 ( #11125 )
2023-12-08 14:11:51 -08:00
Alex Waygood
ad5ec921e0
Bump various test dependencies ( #11120 )
2023-12-08 11:01:36 +00:00
Alex Waygood
bb1f70ad08
Fix stubtest now that Python 3.12.1 is out ( #11121 )
2023-12-08 10:59:44 +00:00
Alex Waygood
d8c174d26a
Remove stubs for stdlib-list ( #11111 )
2023-12-06 08:41:45 -08:00
Alex Waygood
9eb099ed6b
Stubtest fixes for the latest patch release of py311 ( #11107 )
2023-12-06 00:55:46 +00:00
Alex Waygood
77ff987b57
Add some missing attribute annotations to trace.pyi ( #11091 )
2023-12-03 22:14:15 +00:00
Alex Waygood
0b36e65877
Remove redundant sys.version_info condition ( #11087 )
...
We're already inside an `if sys.version_info >= (3, 12)` block here; no need to check if `sys.version_info >= (3, 10)`
2023-11-29 19:10:48 +00:00
Alex Waygood
ef346aba0d
Fixes to typing and typing_extensions stubs ( #11086 )
2023-11-29 19:00:58 +00:00
Alex Waygood
09668963a1
Make itertools.starmap covariant ( #11037 )
2023-11-29 11:10:26 +00:00
Alex Waygood and Avasam
e7c57b5a6d
Bump setuptools to 69.0.* ( #11069 )
...
Co-authored-by: Avasam <samuel.06@hotmail.com >
2023-11-28 22:23:29 +00:00
Alex Waygood
21a0104f0d
maintainers += Avasam ( #11080 )
2023-11-28 17:03:28 -05:00
Alex Waygood
9bbfa3362a
Add importlib.machinery.NamespaceLoader ( #11074 )
2023-11-28 20:02:24 +00:00
Alex Waygood
81633e2709
Bump mypy and pytype test dependencies ( #11065 )
2023-11-23 20:48:11 +00:00
Alex Waygood
01432805d9
Fix typos in docs and comments ( #11064 )
2023-11-23 14:55:58 +00:00
Alex Waygood
1d2fe59e88
Third-party stubs: remove unused type: ignores ( #11063 )
2023-11-23 13:35:45 +00:00
Alex Waygood
b04e50d522
redis: remove unused type: ignores ( #11062 )
2023-11-23 14:02:25 +01:00
Alex Waygood
10febc4fe0
stdlib: remove unused type: ignore comments ( #11061 )
2023-11-23 14:00:07 +01:00
Alex Waygood
a40e683784
Teach stubsabot to be smarter about the required locations of py.typed files ( #11053 )
2023-11-22 22:49:58 +00:00
Alex Waygood
a9fc14a811
third-party stubs: Add several missing __del__ methods ( #11054 )
2023-11-21 19:07:30 +00:00
Alex Waygood
519a7dfcb8
Improve a few dataclass reprs in stubsabot ( #11050 )
2023-11-21 14:20:16 +00:00
Alex Waygood
83964a4dc5
stdlib: add many missing __del__ methods ( #11042 )
2023-11-18 11:32:12 -08:00
Alex Waygood
e21a2c70b7
Bump various test dependencies ( #11041 )
2023-11-18 15:12:06 +00:00
Alex Waygood
4982061ab3
Make itertools.groupby covariant ( #11032 )
2023-11-17 12:33:14 +01:00
Alex Waygood
4aae235cef
Add the nth_combination itertools recipe as a test case ( #11031 )
2023-11-15 20:14:21 +01:00
Alex Waygood
ac88fdfdbf
Bump various test dependencies ( #11030 )
2023-11-15 15:39:45 +00:00
Alex Waygood
968e2be4d6
Add several itertools recipes to the test_cases directory ( #10992 )
2023-11-15 16:29:48 +01:00
Alex Waygood
571cc6d77a
Pin PyScreeze more tightly ( #11017 )
...
To stop the "stubtest failed" bot opening a new issue every night until we have a chance to look at the stubtest failures (stubsabot will just open a PR instead)
Closes #11016
2023-11-11 00:44:49 +00:00
Alex Waygood
eebc28740e
Revert "Use Callable[..., Any] instead of Callable[..., object] in unittest" ( #8779 )
2023-11-10 19:53:33 +01:00
Alex Waygood
3f887d5852
Bump mypy to 1.7.0 ( #11010 )
2023-11-10 15:13:42 +00:00
Alex Waygood
516f665505
Bump flake8-pyi to 23.11.0 ( #10997 )
2023-11-08 16:01:24 +00:00
Alex Waygood
8023ba764a
Remove redundant inheritances from Generic and various typing protocols ( #10981 )
2023-11-06 14:00:25 +01:00
Alex Waygood
56288ad2d0
Add stubs for importlib.(resources.)simple ( #10931 )
2023-10-28 07:29:57 -07:00
Alex Waygood
5643362a1e
Skip ruff's isort rules on files generated with mypy-protobuf ( #10940 )
2023-10-28 12:30:26 +01:00
Alex Waygood
77bccbe1f1
sys.monitoring.restart_events() is no longer undocumented (#10938 )
...
Following https://github.com/python/cpython/commit/3f84a19e6291db682fc9a570e7612e80e2ffbbb5
2023-10-27 17:14:54 +01:00
Alex Waygood
a08d4c8d2e
Remove many redundant inheritances from Generic[] ( #10933 )
2023-10-26 20:07:20 +02:00
Alex Waygood
5dbdd59c9b
Add io.text_encoding on py310+ ( #10929 )
...
See https://discuss.python.org/t/type-checkers-complain-about-io-text-encoding/37187/1 for discussion. The function is documented, even though it's not included in `io.__all__` (which is why stubtest hasn't been complaining about it being missing): https://docs.python.org/3/library/io.html#io.text_encoding
2023-10-26 10:41:31 -07:00
Alex Waygood and Sebastian Rittau
908993a807
Add stubs for importlib.(resources.)readers ( #10928 )
...
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2023-10-26 14:18:55 +01:00
Alex Waygood
40caa050ce
Simplify how we run mypy_test.py on Python 3.12 ( #10923 )
2023-10-23 22:13:22 +01:00
Alex Waygood
b9640005eb
Add stubs for nt ( #10917 )
2023-10-19 10:16:06 -07:00
Alex Waygood
608eca5234
Improve stubs for braintree.environment ( #10907 )
2023-10-18 18:49:17 +01:00
Alex Waygood
2f8d01e9ec
Bump mypy to 1.6.1 ( #10862 )
2023-10-18 07:18:05 +01:00
Alex Waygood
f3506eba47
Bump various test dependency pins ( #10877 )
2023-10-13 13:07:52 +02:00
Alex Waygood
c47be697a3
locale: put all the imports together at the top (#10860 )
2023-10-08 14:18:27 +02:00
Alex Waygood
e4edcf23e0
Fix platform availability of some Unix constants ( #10857 )
2023-10-07 15:05:20 -07:00
Alex Waygood
a0047c4266
Use Python 3.11 for the stub_uploader tests in the daily test ( #10854 )
2023-10-07 01:51:15 +01:00
Alex Waygood
c5599572d4
Use stricter pyright settings when testing pyjks ( #10846 )
2023-10-06 15:01:04 +01:00
Alex Waygood
011f24794d
types-requests, types-influxdb-client: add note to the PyPI readme about the urllib3 pin (#10839 )
2023-10-05 12:12:47 +01:00
Alex Waygood and Jelle Zijlstra
860e34eec9
Fix allowlist entries in asyncio.windows_events ( #10824 )
...
And fix the return value of return value of `IocpProactor.recvfrom_into()`, which was incorrect
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-10-02 16:04:11 +01:00
Alex Waygood
54d825af59
Fix Windows-specific allowlist entries in _msi, msilib, selectors and subprocess ( #10822 )
2023-10-02 13:01:47 +02:00
Alex Waygood
205cfcfca6
Fix availability of some constants for Windows ( #10818 )
2023-10-01 16:27:55 -07:00
Alex Waygood
efa7a51d09
Add a few missing things on Windows, py310+ ( #10817 )
2023-10-01 23:30:44 +01:00
Alex Waygood
559d31c4a3
Remove stubs for urllib3 ( #10812 )
...
Both types-requests and types-influxdb-client now depend on urllib3>=2 instead of types-urllib3. That in turn means that types-caldav, types-slumber and types-requests-oauthlib all depend indirectly on urllib3>=2, since all three stubs packages depend on types-requests.
2023-10-01 00:01:12 +01:00
Alex Waygood
5e7090ce4b
Skip all parts of the daily test on forks of typeshed ( #10782 )
...
We skip 2/3 jobs in the daily test when running on forks:
https://github.com/python/typeshed/blob/b23042e854e79b54c4d2c609cf1e12a2357335a9/.github/workflows/daily.yml#L33
https://github.com/python/typeshed/blob/b23042e854e79b54c4d2c609cf1e12a2357335a9/.github/workflows/daily.yml#L59
But we missed this condition for the stub-uploader part
Fixes #10781
2023-09-26 20:19:43 +01:00
Alex Waygood
3f9a3accc8
Declare that types-jsonschema requires Python 3.8+ ( #10775 )
2023-09-25 20:10:12 +02:00
Alex Waygood
a0b2583bb1
Add OrderedDict.__(r)or__ ( #10770 )
2023-09-25 06:47:02 -07:00
Alex Waygood
5b8193b9fd
ast.NodeVisitor: add the visit_foo methods for PEP-695 (#10759 )
2023-09-24 16:10:16 -07:00
Alex Waygood
e40b5be2ea
Speedup regr_test.py by running test cases concurrently ( #10714 )
2023-09-23 15:39:24 +01:00
Alex Waygood
e1b60060ec
Do a dry run of stubsabot on PRs touching scripts/ or tests/ ( #10508 )
2023-09-22 20:36:21 -07:00
Alex Waygood
53422f8918
pytype_test.py: Handle non-typeshed requirements that are stub-only packages ( #10723 )
2023-09-20 20:03:01 +01:00
Alex Waygood
8597724ac1
Update typing_extensions stubs for v4.8.0 ( #10726 )
2023-09-18 11:30:28 +01:00
Alex Waygood
66771da404
Always install six when stubtesting types-google-cloud-ndb ( #10704 )
...
Fixes #10703
2023-09-12 15:00:44 +01:00
Alex Waygood
487e33112e
Bump various test dependencies ( #10693 )
2023-09-11 14:18:48 +01:00
Alex Waygood
23249c07a9
Update enum for py312 ( #10670 )
2023-09-11 11:26:18 +01:00
Alex Waygood
a570fb6ced
Fix various stubtest complaints on Python 3.12 ( #10691 )
2023-09-10 14:54:43 -07:00
Alex Waygood
6dda2fe9c8
Fix stubtest complaints for various .get() methods ( #10690 )
2023-09-10 14:48:09 -07:00
Alex Waygood
c50a708818
Update poplib and smtplib for py312 ( #10685 )
2023-09-08 18:42:03 +01:00
Alex Waygood
6eec191739
Improve the accuracy of (default)dict.__(r)or__ ( #10679 )
2023-09-08 11:22:17 +01:00
Alex Waygood
aa39b996e9
Pin tree-sitter to 0.20.1 ( #10677 )
2023-09-07 11:23:43 +01:00
Alex Waygood
35a9ed40da
Delete unused allowlist entries ( #10676 )
...
3.12.0rc2 was just released
2023-09-07 02:30:54 +01:00
Alex Waygood and Sebastian Rittau
fecb84eb05
Update asyncio.tasks for py312 ( #10669 )
...
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2023-09-06 12:35:48 +01:00
Alex Waygood
af97a12a87
Add a lint forbidding PEP-570 syntax ( #10660 )
2023-09-04 15:37:50 -07:00
Alex Waygood
433204fb8f
py312: Fix stubtest nits in typing/typing_extensions ( #10659 )
2023-09-04 15:39:11 +01:00
Alex Waygood
75da5de5c2
Many importlib removals in py312 ( #10644 )
2023-09-01 13:43:36 +02:00
Alex Waygood
a4f08bd07f
setuptools: add various missing objects and annotations ( #10639 )
2023-08-30 13:46:20 -07:00
Alex Waygood
4ae6d38f96
Use latest Python for stubtest in CI ( #10641 )
2023-08-30 18:50:11 +02:00
Alex Waygood
7e34ca5b71
runtests.py: note that stdlib stubtest might fail ( #10628 )
2023-08-30 08:48:44 +02:00
Alex Waygood
0692576dab
create_baseline_stubs.py: ensure generated METADATA.toml files end with a newline (#10627 )
2023-08-29 16:37:28 +02:00
Alex Waygood
a094aa09c2
Minor improvements to stubtest_third_party.py ( #10605 )
...
(1) Give a nicer error message if you try to run stubtest on non-existent stubs.
(2) Print the Python version to the terminal if there's an error, as well as the output of pip freeze.
2023-08-22 19:57:14 +01:00
Alex Waygood
6a8d653a67
Deduplicate stdlib stubtest allowlist entries ( #10594 )
2023-08-16 16:11:59 -07:00
Alex Waygood
ef758b66c0
Bump mypy to 1.5.1 ( #10559 )
2023-08-16 12:18:31 -07:00
Alex Waygood
74aac1aa89
Don't pretend EnumMeta inherits from ABCMeta ( #10577 )
2023-08-14 21:59:53 +01:00
Alex Waygood
df08fcec5f
Improve __(r)or__ signatures for TypedDict classes ( #10565 )
2023-08-12 18:27:35 +01:00
Alex Waygood
7836c47286
Fix stubtest for tqdm ( #10560 )
2023-08-11 12:52:01 +01:00
Alex Waygood
230a8f7c6c
Fix stubtest for Python 3.12.0rc1 ( #10541 )
2023-08-07 12:41:31 -07:00
Alex Waygood
a079b0de6e
Update pyflakes stubs for v3.1.* ( #10518 )
2023-07-30 15:35:26 -07:00
Alex Waygood
0d8a6bc200
Add more checks in parse_metadata.py for the upstream_repository field ( #10513 )
2023-07-28 14:04:58 +01:00
Alex Waygood
f08b87ff18
Fix typechecking of our own test suite following change to dict.get ( #10511 )
2023-07-26 17:10:40 +01:00
Alex Waygood
7d33060e6a
Add upstream_repository to metadata for s2clientprotocol ( #10500 )
...
These stubs were added yesterday in #10372 , and I forgot that we had just added this new metadata field
2023-07-22 20:43:30 +01:00
Alex Waygood
65cb3735ec
Bump pytype and ruff test dependencies ( #10499 )
2023-07-22 12:39:16 +01:00
Alex Waygood
2887f60196
Use ruff, not pycln, for removing unused imports ( #10498 )
2023-07-22 12:14:27 +01:00
Alex Waygood and Akuli
49a2371d7a
Auto-add upstream URLs in create_baseline_stubs.py ( #10491 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2023-07-21 15:56:53 +01:00
Alex Waygood
5498cabfe2
Bump various test dependencies ( #10492 )
2023-07-21 00:09:19 +01:00
Alex Waygood
79e092e133
Add some ruff autofixes to CI ( #10458 )
2023-07-20 14:41:52 +02:00