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
Alex Waygood
9b63a49f64
Re-export dateutil._common.weekday from dateutil.relativedelta ( #9819 )
2023-02-27 12:03:18 +00:00
Alex Waygood
2daa07ddf0
stubtest_stdlib: suppress output from pip ( #9807 )
2023-02-25 16:32:24 -08:00
Alex Waygood
13325d4d80
Fix stubtest for influxdb-client ( #9808 )
...
Fixes #9805
2023-02-24 09:00:17 -08:00
Alex Waygood
f6df5b5dd2
Remove a default value in distutils ( #9800 )
...
Fixes #9799 .
Stubtest started failing on our `setuptools` stubs because of a default value added to our stdlib `distutils` stubs. The reason for this is because our `setuptools` stubs erroneously claim here that the `setuptools._distutils.core.Distribution` class is the same as the stdlib `distutils.dist.Distribution` class:
https://github.com/python/typeshed/blob/06755e10ba0d39e7e4c18fcc2663d9da564a71ad/stubs/setuptools/setuptools/_distutils/core.pyi#L3
In actual fact, they're not, and they have different default values for this parameter. But reverting the addition of the default value is the simplest short-term fix for now.
(An alternative fix would be to just merge #9795.)
2023-02-23 22:38:11 +00:00
Alex Waygood
1d2ae2598b
Fix some typos in comments ( #9802 )
2023-02-23 22:11:24 +00:00
Alex Waygood
6ba28ae547
Remove unused type: ignore comments ( #9801 )
2023-02-23 12:59:50 -08:00
Alex Waygood
76bfe8b469
argparse: simplify parse_args overloads (#9798 )
2023-02-22 23:46:35 +02:00
Alex Waygood
b0dc6a3405
Add defaults to logging.LoggerAdapter methods ( #9797 )
2023-02-22 11:50:11 +01:00
Alex Waygood
9ed719b640
Bump pyright to 1.1.295 ( #9796 )
2023-02-22 09:22:35 +00:00
Alex Waygood
fbc092b4cd
Stdlib: add defaults for several functions that delegate kwargs to other functions at runtime ( #9791 )
2023-02-21 23:31:25 -08:00
Alex Waygood
fea57ad095
hmac.HMAC: digestmod defaults to None on py37 (#9790 )
2023-02-21 18:24:34 +00:00
Alex Waygood
f2ae3542d3
Stdlib: Deduplicate some multiprocessing type aliases ( #9788 )
2023-02-21 13:30:41 +01:00
Alex Waygood
c407a44489
Add defaults to csv stubs ( #9774 )
2023-02-21 11:33:38 +01:00
Alex Waygood
880c0da404
Enable some more mypy lints when checking our own code ( #9787 )
2023-02-21 00:54:35 +00:00
Alex Waygood
bc847a9b07
Use generic NamedTuples to clean up urllib.parse ( #9773 )
2023-02-20 16:41:49 -08:00
Alex Waygood
4d99b33f84
Fix an unnecessary allowlist entry in ssl.pyi ( #9776 )
2023-02-20 16:35:38 -08:00
Alex Waygood
9163c71e47
[Minor] Simplify some type hints in stubsabot ( #9785 )
...
We can use `typing_extensions.Self` now
2023-02-20 16:32:22 -08:00
Alex Waygood
e6e7fab111
Add some more environment variables to speedup brew installs in CI ( #9786 )
2023-02-21 00:20:28 +00:00
Alex Waygood
3786ab295e
Fix an unnecessary socketserver allowlist entry ( #9777 )
2023-02-20 11:14:20 -08:00
Alex Waygood
0878173943
textwrap.{wrap, fill}: max_lines defaults to None (#9775 )
...
All keyword arguments are delegated to `TextWrapper.__init__`: https://github.com/python/cpython/blob/59e86caca812fc993c5eb7dc8ccd1508ffccba86/Lib/textwrap.py#L373-L396
2023-02-20 10:39:48 -08:00
Alex Waygood
14ab089bd5
Use a generic NamedTuple for concurrent.futures.DoneAndNotDoneFutures ( #9772 )
2023-02-20 08:54:21 -08:00
Alex Waygood
4273a83bb7
unittest: Use a recursive type alias for assertIsInstance (#9770 )
2023-02-20 15:35:50 +00:00
Alex Waygood
5e6b172e17
stdlib/_decimal.pyi: correct many parameter names (#9769 )
2023-02-20 15:57:54 +01:00
Alex Waygood and Jelle Zijlstra
c5b5dd4bf4
Various stdlib dunders: correct parameter names; improve types; add defaults ( #9761 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-02-19 22:44:20 +00:00
Alex Waygood
4ca0c48425
Improve the first overload of is_dataclass ( #9758 )
2023-02-19 06:26:11 -08:00
Alex Waygood
70c027e9ef
Fix broken stubsabot logic in find_first_release_with_py_typed ( #9760 )
2023-02-19 14:22:51 +00:00
Alex Waygood
7180d0223b
Use typing_extensions.Self instead of _typeshed.Self ( #9702 )
2023-02-15 11:32:43 +01:00
Alex Waygood
8cd6d81f15
Bump pyright to 1.1.294; improve psutil stubs ( #9739 )
...
Partially type psfullmem
2023-02-15 10:54:36 +01:00
Alex Waygood
9ed39d8796
Use typing_extensions.Self in the stdlib ( #9694 )
2023-02-09 09:12:13 +00:00
Alex Waygood
6d535bf0a3
Enable stubtest for pyserial ( #9692 )
2023-02-09 00:10:33 +01:00
Alex Waygood
32c575d980
subprocess.check_call: executable defaults to None (#9689 )
...
This argument is forwarded on to `Popen.__init__`, like most of the other arguments. It can be `None`, just like the `executable` parameter for all the other `subprocess` functions:
```pycon
>>> import subprocess
>>> subprocess.check_call(["python", "-c", "1/1"], executable=None)
0
>>> subprocess.check_call(["python", "-c", "1/0"], executable=None)
Traceback (most recent call last):
File "<string>", line 1, in <module>
ZeroDivisionError: division by zero
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\alexw\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['python', '-c', '1/0']' returned non-zero exit status 1.
```
2023-02-07 12:33:12 +00:00
Alex Waygood
53747b264e
Stdlib: add 'obvious' default values ( #9688 )
2023-02-07 13:00:40 +01:00
Alex Waygood and Avasam
60789273a2
Improve pyright verification of third-party test cases in CI ( #9650 )
...
Co-authored-by: Avasam <samuel.06@hotmail.com >
2023-02-07 11:53:54 +00:00
Alex Waygood
0ef9c3f8e8
Enable flake8-pyi's Y037 ( #9686 )
2023-02-06 19:01:02 -08:00
Alex Waygood
c4c4bee8aa
Remove a no-longer-needed # noqa ( #9685 )
2023-02-07 00:43:53 +00:00
Alex Waygood
efee70abfa
Bump mypy to 1.0 ( #9684 )
2023-02-06 15:57:17 -08:00
Alex Waygood
5157ff86da
unicodedata: overload many functions and methods (#9656 )
2023-02-06 07:04:26 -08:00
Alex Waygood
262f2067aa
Update paramiko stubs to 3.0.* ( #9667 )
2023-02-06 07:01:50 -08:00
Alex Waygood
191afbc559
Update invoke stubs to 2.0.* ( #9669 )
2023-02-06 06:54:21 -08:00
Alex Waygood
ccb250940a
Improve collections stubs ( #9674 )
2023-02-06 13:54:15 +01:00
Alex Waygood
b9270da7b0
Improve readability of stdlib/_winapi.pyi ( #9673 )
2023-02-04 06:55:47 -08:00
Alex Waygood
1e3d762a12
stdlib: use bool for annotations where the default is False ( #9672 )
2023-02-04 11:58:18 +00:00