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
Alex Waygood
1088ab3d93
Improve stubs for classmethod and staticmethod ( #10421 )
2023-07-19 13:32:04 +02:00
Alex Waygood
03b4bb9cce
Stdlib: add many missing __hash__ and __eq__ methods ( #10464 )
2023-07-17 14:21:02 +02:00
Alex Waygood
47fc836259
Add stubs for pkg_resources._vendor.packaging ( #10423 )
2023-07-15 13:56:21 -07:00
Alex Waygood
f2ee9e9368
Stubtest: fixes for py312beta4 ( #10449 )
...
* Revert "json: add AttrDict in py312 (#10212 )"
This reverts commit 7994f165da .
* TaskGroup updates
2023-07-12 21:21:05 +01:00
Alex Waygood
81b8211d0e
Revert "Remove un-needed __hash__ methods from stdlib ( #8465 )" ( #10426 )
...
Reverts https://github.com/python/typeshed/pull/8465
Fixes https://github.com/python/typeshed/issues/10424
Closes https://github.com/python/typeshed/pull/10425
https://github.com/python/typeshed/pull/8465 caused regressions: see https://github.com/python/typeshed/issues/10424 and https://github.com/python/mypy/issues/13800 . Since it didn't fix any known problems (just some stylistic nits that we had), let's just revert the PR.
2023-07-09 08:43:32 -07:00
Alex Waygood
b3e60dc447
Remove stubs for typed-ast ( #10415 )
2023-07-06 01:02:01 -07:00
Alex Waygood
597810e46e
Mark types-typed-ast as no longer updated ( #10410 )
2023-07-05 10:08:10 -07:00
Alex Waygood
39fd112f3e
Further improve non-types dependency handling in pytype_test.py ( #10393 )
2023-07-01 00:24:38 +01:00
Alex Waygood
7fdd05003a
pytype_test.py: Use importlib.metadata instead of pkg_resources ( #10391 )
2023-06-30 21:37:06 +01:00
Alex Waygood
cd0388439a
Remove stubs for annoy ( #10388 )
2023-06-30 11:40:45 +02:00
Alex Waygood
b6a422112b
Pin typing_extensions to 4.6.3 ( #10385 )
...
Our CI is very red on `main` at the moment, due to the release of typing_extensions 4.6.3 (see #10383 ). #10344 is the fix for this, but that PR breaks pytype. For now, let's just pin to 4.6.3 to get CI green again.
2023-06-29 06:24:30 -07:00
Alex Waygood
5ee46bd291
Bump various test dependencies ( #10378 )
2023-06-28 14:22:49 +01:00
Alex Waygood
7289fb9f77
Stubsabot: Fix incorrect diff link when a py.typed was added in a micro version ( #10375 )
2023-06-28 11:48:11 +02:00
Alex Waygood
d32754c336
Stubsabot: mark stubs as obsolete, even if the py.typed file was added in a micro version ( #10368 )
2023-06-27 20:17:17 +01:00
Alex Waygood
1b2e4091db
Bump mypy to 1.4.1 ( #10351 )
2023-06-25 16:45:09 -07:00
Alex Waygood
c63dd5941f
Improve how we run pyright in CI ( #10258 )
...
Avoid using the deprecated `--venv-path` command-line argument
2023-06-23 09:26:19 +01:00
Alex Waygood
4a692fc546
Fix stubtest for py312b3 ( #10343 )
2023-06-21 15:46:50 +01:00
Alex Waygood
6652add920
CI: run more jobs on py311 ( #10342 )
2023-06-21 06:54:49 -07:00
Alex Waygood
007a65a7fe
CI: Pin Python to 3.7.16 for stubtest runs on macos ( #10336 )
2023-06-20 16:35:28 -07:00
Alex Waygood and Jelle Zijlstra
8ec2323c0a
Replace static assertion that fails with pyright ( #10335 )
...
See https://github.com/python/typeshed/pull/10325#issuecomment-1598684045
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-06-20 14:56:14 +01:00
Alex Waygood
c38fc45d9c
Make CVE-2020-10735 allowlist entries Windows-only ( #10318 )
2023-06-14 10:36:24 -07:00
Alex Waygood
6e90fce4b8
Update pyright to 1.1.314 ( #10317 )
2023-06-14 10:33:01 +02:00
Alex Waygood
640676bdb2
Mark arguments of typing.NamedTuple.__init__ as positional-only ( #10292 )
2023-06-11 12:28:01 +02:00
Alex Waygood
85bdd0a16d
Update pyright to 1.1.312 ( #10271 )
...
Should unblock #10216 and #10258
2023-06-07 08:39:50 +01:00
Alex Waygood
cf25698325
tempfile: more updates for py312 (#10256 )
2023-06-04 12:13:12 -07:00
Alex Waygood
c3791d024a
pathlib: is_mount() is implemented on Windows on py312+ (#10257 )
2023-06-04 12:09:06 -07:00
Alex Waygood
d8ef303e00
Bump pycln and pathspec test dependencies ( #10251 )
2023-06-03 14:46:33 +01:00
Alex Waygood
a4856c5650
shutil.rmtree: Add onexc parameter; add parameter defaults (#10219 )
2023-05-25 23:38:21 -07:00
Alex Waygood
bb701b09db
Improve NamedTuple stubs ( #10220 )
2023-05-25 08:37:52 -07:00
Alex Waygood
4190dbca10
Add __orig_bases__ to TypedDict classes ( #10221 )
2023-05-25 08:34:31 -07:00
Alex Waygood
ecf4e708bf
Revert "[stubsabot] Mark pyvmomi as obsolete since 8.0.1.0 ( #10148 )" ( #10171 )
...
This reverts commit 853d01d55e .
2023-05-10 17:28:19 +01:00
Alex Waygood
d1bfd08b4b
Allow passing multiprocessing.Queues to QueueListener/QueueHandler ( #10169 )
2023-05-10 17:06:41 +02:00
Alex Waygood
1221b47118
Improve how we run mypy on the py312 stubs ( #10152 )
2023-05-10 10:05:45 +02:00
Alex Waygood
9ac44fb8a6
Pin pyvmomi more tightly ( #10147 )
...
Fixes #10146
2023-05-06 01:34:25 +01:00
Alex Waygood
348f46452f
flake8: Enable F822 ( #10144 )
2023-05-05 10:27:41 -07:00
Alex Waygood
99375e1b4c
Bump flake8-pyi to 23.5.0; re-enable F821 ( #10143 )
2023-05-05 18:06:10 +02:00
Alex Waygood
d208d5a833
Pyright: create a more isolated environment in CI for testing stubs ( #10121 )
2023-05-01 19:02:45 +01:00
Alex Waygood
e816acffdd
Avoid unnecessary forward refs in class definitions ( #10124 )
2023-05-01 07:50:50 -07:00
Alex Waygood
277532219f
Remove unnecessary F821 noqas ( #10123 )
2023-05-01 07:50:00 -07:00
Alex Waygood
2c3449694b
Run mypy and pyright on our py312 stubs in CI ( #10119 )
2023-04-30 15:31:08 +01:00
Alex Waygood
e0db6d2edd
urllib3: move stubs for ssl_match_hostname around (#10117 )
2023-04-30 07:02:55 -07:00
Alex Waygood
6f6b1c9135
Bump various test dependencies ( #10111 )
2023-04-29 18:20:06 +01:00
Alex Waygood
2d84e56d6f
Update requests for v2.29 ( #10097 )
2023-04-29 00:44:51 +01:00
Alex Waygood
2dd268d74a
influxdb-client: fix stubtest ( #10090 )
2023-04-26 19:28:35 -07:00
Alex Waygood
83f0dbe14c
Bump various test dependencies ( #10045 )
2023-04-13 14:34:32 +01:00
Alex Waygood
2279886964
Style: prefer type[Foo | Bar] over type[Foo] | type[Bar] ( #10039 )
2023-04-13 11:34:53 +02:00
Alex Waygood
308a36bf5c
Delete allowlist for croniter ( #10041 )
...
Fixes #10040
2023-04-12 17:37:13 -07:00
Alex Waygood
557fb3326a
mypy_primer: Run on Python 3.11 (#9336 )
...
`mypy_primer` now runs on Python 3.11 in CI, meaning we get `mypy_primer` coverage for PRs fiddling with `ExceptionGroup`s or other new features added in Python 3.11
2023-04-11 11:51:09 +01:00
Alex Waygood
a035372a91
Bump various test dependencies ( #10028 )
2023-04-10 13:58:26 +01:00
Alex Waygood
60939b00af
Various improvements to non-generated protobuf stubs ( #10010 )
2023-04-04 13:44:58 +01:00
Alex Waygood
755e2bda7e
google-cloud-ndb, paramiko, setuptools: remove unnecessary = ...s (#10011 )
2023-04-04 13:40:16 +01:00
Alex Waygood
fe67f034f2
Various improvements to dateutil.rrule stubs ( #10009 )
2023-04-04 13:33:54 +01:00
Alex Waygood
fe9eb630ee
Various improvements to Markdown stubs ( #10008 )
2023-04-04 12:56:03 +01:00
Alex Waygood
88a9e900b6
Improve urlunsplit and urlunparse ( #9991 )
2023-04-02 11:52:09 +01:00
Alex Waygood
6fd245d890
Remove stubs for D3DShot ( #9995 )
2023-04-01 16:14:25 +02:00
Alex Waygood
47ce3cb8db
Xlib: Use bool for parameters where the default is False (#9990 )
2023-03-30 15:05:22 +01:00
Alex Waygood
ff3b558fb3
colorama.winterm: ClassVar -> Final for WinColor and WinStyle ( #9983 )
2023-03-30 00:14:53 +02:00
Alex Waygood
ed915c5cde
Remove unnecessary = ...s; bump pyright test dependency to 1.1.301 ( #9972 )
2023-03-29 13:52:43 +02:00
Alex Waygood
8df767f163
Add default values to pika.spec ( #9973 )
2023-03-29 11:46:53 +02:00
Alex Waygood
ccc4b7a034
Add defaults to third-party stubs U-Z ( #9971 )
2023-03-28 19:33:38 +02:00
Alex Waygood
b69b17c3d8
Add defaults for third-party stubs Q-T ( #9959 )
2023-03-28 13:16:31 +02:00
Alex Waygood
6fd7e36e80
Add default values for third-party stubs beginning with 'P' ( #9957 )
2023-03-27 18:58:53 +01:00
Alex Waygood
20f9b3685d
Bump pyright test dependency to 1.1.299 ( #9958 )
2023-03-27 18:29:47 +01:00
Alex Waygood
bb7c376142
Add defaults for third-party stubs M-O ( #9956 )
2023-03-27 19:20:30 +02:00
Alex Waygood
af884b236b
Add defaults for third-party stubs I-L ( #9955 )
2023-03-27 19:19:55 +02:00
Alex Waygood
1cd3ae8e30
Add defaults for third-party stubs E-H ( #9954 )
2023-03-27 17:09:01 +01:00
Alex Waygood
b9fedd20ce
Add defaults for third-party stubs A-D ( #9952 )
2023-03-27 16:49:58 +01:00
Alex Waygood
1d6a880a3d
openpyxl: add baseline stubs for new modules ( #9921 )
2023-03-24 12:39:10 +01:00
Alex Waygood
dd2818a41d
Stdlib: add container default values ( #9909 )
2023-03-21 09:12:34 +01:00
Alex Waygood
f3fc792620
Bump flake8-pyi test dependency to 23.3.1 ( #9906 )
2023-03-20 19:19:01 +01:00
Alex Waygood
ca55889329
distutils/setuptools: Don't use wildcards for allowlist entries ( #9900 )
2023-03-17 14:05:12 -07:00
Alex Waygood and JelleZijlstra
21d7f7153b
[alt] typing: accept buffers in IO.write ( #9861 )
...
Co-authored-by: JelleZijlstra <jelle.zijlstra@gmail.com >
2023-03-15 00:42:10 -07:00
Alex Waygood
b7d1079e86
Bump various test dependencies ( #9886 )
2023-03-14 14:13:24 -07:00
Alex Waygood
c9fa41683a
Remove stubs for appdirs and backports.ssl-match-hostname ( #9884 )
2023-03-14 09:17:55 -07:00
Alex Waygood
7e0b9b44de
Fix typos in extra_description fields ( #9883 )
2023-03-14 08:15:15 -07:00
Alex Waygood
388da6a60b
Mark stubs for backports.ssl_match_hostname as no longer updated ( #9882 )
...
See #9843 for discussion
2023-03-14 07:24:35 -07:00
Alex Waygood
28dd6c1a2e
Use ParamSpec for classmethod and staticmethod ( #9771 )
2023-03-14 09:59:17 +00:00
Alex Waygood
51870544db
Bump pytype dependency to 2023.3.13 ( #9881 )
2023-03-14 09:40:54 +00:00
Alex Waygood
ad9c7c1d0c
Mark types-appdirs as no longer updated ( #9877 )
2023-03-13 16:36:44 +01:00
Alex Waygood
36515c48a9
flake8: ignore pyflakes codes in *_pb2.pyi files that are ignored in all other .pyi files ( #9878 )
...
Several flake8 error codes are currently ignored for all `.pyi` files _except_ those ending with `_pb2.pyi`. This caused a bit of confusion in #9873 . This PR makes it so that all codes ignored generally across typeshed are also ignored in `*_pb2.pyi` files
2023-03-13 15:22:16 +00:00
Alex Waygood
62a833c50f
typed_ast: Add missing field to typed_ast.ast3.TypeIgnore ( #9868 )
...
```pycon
>>> import typed_ast.ast3 as ast3
>>> x = ast3.parse('def foo(): ... # type: ignore[attr-defined]')
>>> ast3.dump(x)
"Module(body=[FunctionDef(name='foo', args=arguments(args=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Expr(value=Ellipsis())], decorator_list=[], returns=None, type_comment=None)], type_ignores=[TypeIgnore(lineno=1, tag='[attr-defined]')])"
```
2023-03-11 11:15:12 -08:00
Alex Waygood
75ecd7e229
importlib.resources is a package on 3.11+ (#9822 )
2023-03-08 08:36:18 +00:00
Alex Waygood
8a2bc88409
Improve typechecking of the test suite ( #9806 )
2023-03-08 08:35:41 +00:00
Alex Waygood
4118b5fc6e
Update console-menu stubs for v0.8 ( #9845 )
2023-03-06 18:25:37 +01:00
Alex Waygood
9472dc10b9
Update tqdm stubs to 4.65.* ( #9840 )
2023-03-04 10:06:40 -08:00
Alex Waygood
257e287fec
Stdlib: correct many parameter names ( #9815 )
2023-03-04 09:53:12 +00:00
Alex Waygood
904407f8e4
Revert "babel: Mark babel as obsolete since 2.12.0" ( #9831 )
...
Revert "babel: Mark babel as obsolete since 2.12.0 (#9830 )"
This reverts commit 68f78efe31 .
2023-02-28 12:53:40 +01:00
Alex Waygood
88506f0e56
_weakref.ReferenceType.__new__: all args are pos-only (#9820 )
...
Fixes #9712
2023-02-27 13:20:10 +01:00