Alex Waygood
2fd0180bb1
stubsabot: Add the PR body to the commit message ( #8740 )
2022-09-15 20:12:35 +01:00
Samuel T
c9346f32e1
Add stubs for PyInstaller (public API only) ( #8702 )
2022-09-15 13:27:53 +01:00
Alex Waygood
8e718d4891
pstats: delete outdated comment (#8738 )
...
The annotation in CPython was fixed thanks to @ruancomelli in https://github.com/python/cpython/pull/96741 !
2022-09-15 11:24:30 +01:00
Alex Waygood
3e71efbc73
Improve the daily.yml workflow ( #8737 )
2022-09-14 21:46:18 -07:00
Alex Waygood
246f7e7720
protobuf: fix stubtest errors ( #8735 )
2022-09-14 21:45:29 -07:00
Adrian Freund
205901e2fd
Add type stubs for cffi ( #8736 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-09-14 23:44:33 +01:00
yejia-stripe
42c044eb67
stripe: Add SearchableAPIResource, SearchResultObject (#8696 )
2022-09-13 16:29:56 +01:00
Alex Waygood
a6c174cc7b
Add new sys functions introduced to combat CVE-2020-10735 ( #8733 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-09-13 16:01:26 +01:00
Kevin Kirsche
65c4ddfc57
Update parsimonious to 0.10.0 ( #8730 )
2022-09-13 15:59:08 +01:00
Samuel T
3ec7b1f2bb
Add stubs for D3DShot ( #8652 )
2022-09-12 18:32:47 +01:00
Alex Waygood
34383fcab5
[pynput] Fix annotations of Controller.Key(Code) ( #8722 )
...
Document stubtest entries
2022-09-12 13:30:57 +02:00
shawnbrown
266aa3b6ca
sqlite3: allow passing None for the func parameter of create_function ( #8728 )
2022-09-12 12:47:54 +03:00
Alex Waygood
c4483a7b01
Update fdpf2 stubs for v2.5.7 ( #8721 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-09-11 15:27:19 +01:00
Amethyst Reese
b4d91054e3
Add missing attributes for docutils.io ( #8716 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-09-11 14:53:13 +01:00
Nikita Sobolev
4905074919
tarfile.TarFile: mark OPEN_METH as a ClassVar (#8725 )
2022-09-11 14:32:52 +01:00
Nikita Sobolev
d987f92e55
string.Template: Make several attributes ClassVars (#8724 )
2022-09-11 14:29:31 +01:00
Kevin Kirsche
525d122448
Improve paramiko.win_pageant stubs ( #8671 )
2022-09-10 23:10:14 +01:00
Alex Waygood
ed29fc5557
stubtest_third_party.py: Make it work on Windows (#8720 )
2022-09-11 01:06:46 +03:00
Ruan Comelli
04a88d5740
pstats.FunctionProfile.ncalls should be str (#8712 )
...
Correctly annotate `pstats.FunctionProfile.ncalls` as `str` instead of `int`.
Since this change introduces a difference between typeshed and CPython, add a comment pointing that out and linking to this PR.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-09-10 21:11:45 +01:00
Akuli
ab022557e2
Run third-party stubtest under xvfb-run ( #8719 )
2022-09-10 18:34:11 +03:00
Nikita Sobolev
43d4174590
SQLAlchemy: Use ParamSpec for Engine.transaction() and Engine.run_callable() (#8718 )
2022-09-10 16:29:54 +01:00
Samuel T
4f2666ba8e
Complete pyautogui stubs ( #8684 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-09-09 12:34:45 +01:00
github-actions[bot]
8a8db9c6d4
[stubsabot] Bump aiofiles to 22.1.* ( #8714 )
...
Co-authored-by: stubsabot <>
2022-09-08 18:25:46 -07:00
Alex Waygood
b53843ab46
Add infrastructure allowing for test cases for third-party stubs ( #8700 )
...
- Move the logic for running mypy on the test cases from `tests/mypy_test.py` to a separate script, `tests/regr_test.py`.
- Add the necessary logic in order to be able to have test cases for third-party stubs.
- Move logic common to `tests/mypy_test.py` and `tests/regr_test.py` into `tests/colors.py`, and rename `tests/colors.py` to `tests/utils.py`.
- Add a new check to `tests/check_consistent.py`, to enforce the use of `# pyright: reportUnnecessaryTypeIgnoreComment=true` comments in third-party test cases. These are essential if we want to have our tests against false-negatives work with pyright.
- Update the relevant documentation to account for the new test file.
- Add a new job to the `tests.yml` GitHub workflow, to run the new test in CI.
- Add a simple proof-of-concept test case for `requests`, as a regression test for #7998 .
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2022-09-08 16:51:33 +01:00
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