Jukka Lehtosalo
e4d0d3d9d7
Make the return type of multiprocessing.connection.Pipe more precise ( #8706 )
...
The precise return type depends on the platform. Link to implementation:
68fb03249f/Lib/multiprocessing/connection.py (L518)
Now users no longer need to use the internal-looking class
`_ConnectionBase` in annotations, at least in code that doesn't
need to be cross-platform.
2022-09-08 13:24:49 +01:00
Alexander Reynolds
fdbf1396d1
[protobuf] MessageToJson indent parameter can be None ( #8705 )
2022-09-08 13:41:18 +02:00
Elton H.Y. Chou
ff3c3b8373
Fix urllib3.response.HTTPResponse.geturl() return type ( #8704 )
...
urllib3.response.HTTPResponse.geturl() return should be `str | None`.
Source: 3951d3cf8f/src/urllib3/response.py (L416-L417)
2022-09-07 17:00:38 -07:00
J. Sebastian Paez
cc7d2567f2
Add _ExtendAction to argparse ( #8701 )
...
_ExtendAction was added to argparse since python 3.8.
Reference of the addition to the standard library:
python/cpython@aa32a7e
2022-09-07 21:53:35 +01:00
Akuli
b98ee679fb
tree-sitter: add missing members ( #8693 )
2022-09-06 12:28:11 -07:00
Jakub Kuczys
81f8a10e9b
Update traceback.clear_frames() to accept None ( #8695 )
...
`Exception.__traceback__` can potentially be None so for convenience
(and because the simplest way of implementing it will allow it anyway),
traceback.clear_frames() allows None.
2022-09-06 12:26:15 -07:00
Alex Waygood
e2ef8fe116
test_cases README: Address post-merge review of #8688 ( #8694 )
...
Thanks @kkirsche for the review!
2022-09-06 17:00:57 +01:00
Nikita Sobolev
d5d4bbbe7c
Use ClassVar for class-level attributes in calendar ( #8691 )
...
Source: f177f6f29b/Lib/calendar.py (L418-L436)
2022-09-06 10:14:56 +01:00
Alex Waygood
51e8325c10
Rename the files in the test_cases directory; add further clarifications to the README ( #8688 )
2022-09-06 07:50:24 +02:00
James Hilton-Balfe
189d1116d1
[bs4] More precise types for bs4.Tag.select(_one) ( #8687 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-09-05 15:16:33 -07:00
Samuel T
939fc86e79
Added stubs for keyboard ( #8666 )
2022-09-05 14:34:11 -07:00
Alex Waygood
b6d28acb23
mypy_test.py: Use pathlib more (#8680 )
2022-09-05 14:24:14 +01:00
Alex Waygood
fd4feba2c9
Enable pyright's reportUnnecessaryTypeIgnoreComment setting for the whole test_cases directory ( #8683 )
2022-09-05 15:20:04 +02:00
Alex Waygood
3a397a2252
stubsabot: improve argparse for --action-level ( #8682 )
2022-09-04 16:16:05 -07:00
Alex Waygood
eb6431c4cc
stubsabot: warn if stubtest won't test an update ( #8681 )
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com >
2022-09-04 13:56:58 -07:00
Kevin Kirsche
8e4b89a707
fix: add missing paramiko.win_openssh ( #8672 )
2022-09-03 14:03:10 -07:00
Alex Waygood
483f0ac078
prettytable: Fix stubtest errors (#8676 )
...
Fixes #8674 . A partial revert of 9e69627501 .
2022-09-03 13:26:23 -07:00
Alex Waygood
8bc2565d11
pyautogui: just skip stubtest (#8678 )
2022-09-03 13:25:50 -07:00
Alex Waygood
54c562827b
Cancel old test jobs in CI ( #8679 )
2022-09-03 13:04:54 -07:00
Kevin Kirsche
82cccac369
jsonschema._format: update some annotations to match upstream (#8673 )
2022-09-03 12:54:48 +01:00
Samuel T
4c100febcd
Add stubs for pyautogui ( #8654 )
...
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-09-03 12:45:20 +01:00
James Hilton-Balfe
61831c0164
Add some undocumented constants to gzip.pyi ( #8675 )
...
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-09-03 12:04:48 +01:00
Samuel T
bfe56cd471
create_baseline_stubs: fix pyright config on windows, write to stubs ( #8653 )
2022-09-02 14:53:37 -07:00
James Hilton-Balfe
1195bbaf33
Make Struct.size and format read-only properties ( #8670 )
...
attribute 'size' of '_struct.Struct' objects is not writable
2022-09-02 14:50:47 +01:00
Nikita Sobolev
4a4acdb30a
redis: Improve kwargs typing in sentinel (#8661 )
2022-09-02 13:02:12 +01:00
Pierre Riandey
70d76ecf8f
Add types for unittest.loader.TestLoader._match_path ( #8669 )
2022-09-02 09:55:24 +02:00
Samuel T
bcb8384e2f
Removed outdated mypy exceptions in CONTRIBUTING ( #8668 )
...
Closes #8667
2022-09-02 09:09:35 +02:00
github-actions[bot]
bf3b1f0c4d
[stubsabot] Bump jsonschema to 4.15.* ( #8665 )
...
Co-authored-by: stubsabot <>
2022-09-01 18:46:51 -07:00
Jelle Zijlstra
c1d307fc3b
black: upgrade ( #8659 )
2022-08-31 16:01:52 -07:00
Kevin Kirsche
80fdf9e6c6
paramiko: Add missing types in __init__.pyi and _version.pyi (#8651 )
2022-08-31 18:00:39 +01:00
Alex Waygood
3e5808a990
Bump flake8-pyi and pytype test dependencies ( #8656 )
2022-08-31 12:20:11 +01:00
Alex Waygood
601700d1a5
Improve some tkinter unions ( #8655 )
2022-08-31 13:05:51 +03:00
Alex Waygood
86a34c5bd6
typecheck_typeshed.py: Make dir command-line argument positional-only (#8646 )
2022-08-31 09:14:53 +01:00
Alex Waygood
8b222200e0
fpdf2: Remove redundant str | Literal['DEPRECATED'] union (#8650 )
2022-08-30 19:54:52 +01:00
Anh71me
1dd533acc0
stdlib/_ast.pyi: Fix ast.ImportFrom arg module _identifier to str ( #8648 )
2022-08-30 12:18:28 +02:00
github-actions[bot]
9e69627501
Bump prettytable to 3.4.* ( #8621 )
2022-08-29 13:37:50 -07:00
Alex Waygood
b417d5796d
Run flake8-noqa in CI ( #8641 )
2022-08-29 21:06:47 +01:00
junkmd
1c6eb33c23
add and migrate constants from ctypes/__init__.pyi to _ctypes.pyi ( #8643 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-08-29 15:33:47 +01:00
Alex Waygood
c72c9a6c96
typed_ast.ast3: arguments.kw_defaults should be list[expr | None] (#8645 )
...
```python
>>> from typed_ast import ast3
>>> print(ast3.dump(ast3.parse('def foo(*, arg: int) -> None: ...')))
Module(body=[FunctionDef(name='foo', args=arguments(args=[], vararg=None, kwonlyargs=[arg(arg='arg', annotation=Name(id='int', ctx=Load()), type_comment=None)], kw_defaults=[None], kwarg=None, defaults=[]), body=[Expr(value=Ellipsis())], decorator_list=[], returns=NameConstant(value=None), type_comment=None)], type_ignores=[])
```
This bug was discovered in https://github.com/python/mypy/pull/13547
2022-08-29 14:44:48 +01:00
Alex Waygood
c0f27e39f9
Upgrade pytype to 22.8.23 ( #8644 )
2022-08-29 14:07:11 +01:00
Alex Waygood
bc26a98bd7
create_baseline_stubs.py: Modernize a few type annotations (#8642 )
2022-08-29 13:49:00 +01:00
Kevin Kirsche
2c7ac0990f
Remove ssl.SSLContext.__init__ ( #8640 )
...
Fixes : #8632
2022-08-29 13:07:59 +01:00
Alex Waygood
e2211cb420
Delete some unused # noqa comments ( #8639 )
2022-08-29 12:56:06 +01:00
Alex Waygood
c8a679657b
Delete scripts/update-stubtest-allowlist.py ( #8606 )
2022-08-29 13:50:26 +02:00
Nikita Sobolev
d3cded7fc6
redis: Add _Encodable type alias ( #8638 )
2022-08-29 13:38:22 +02:00
Nikita Sobolev
6e985ef3de
stdlib mapping classes: Use better names for various pos-only parameters ( #8637 )
2022-08-28 23:29:00 +01:00
Alex Waygood
1b6cda86d4
Alphabetise items in requirements-tests.txt ( #8635 )
2022-08-28 07:59:17 -07:00
Nikita Sobolev
6d5fd0e290
Allow passing tuples to ipaddress.ip_network ( #8634 )
2022-08-27 18:38:26 +01:00
Nikita Sobolev
481027e194
redis: Improve ClusterPubSub types ( #8627 )
2022-08-27 16:13:46 +01:00
Jason Heiss
d1d9b98aff
imaplib.Time2Internaldate also takes datetimes and 9-element tuples (#8630 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-08-27 16:11:26 +01:00