Commit Graph

7884 Commits

Author SHA1 Message Date
Jun Komoda
a6ecf564b5 move and rename from ctypes._FuncPointer to _ctypes.CFuncPtr (#10140)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-05-06 10:17:34 -07:00
github-actions[bot]
853d01d55e [stubsabot] Mark pyvmomi as obsolete since 8.0.1.0 (#10148)
Release: https://pypi.org/pypi/pyvmomi/8.0.1.0
Homepage: https://github.com/vmware/pyvmomi
Diff: https://github.com/vmware/pyvmomi/compare/v8.0.0.1.2...v8.0.1.0
2023-05-06 01:56:54 +01: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
Sebastian Rittau
5fdbf37c1f [requests] Update stubs to 2.30 (#10141) 2023-05-05 11:01:21 +01:00
github-actions[bot]
f9551c4fea [stubsabot] Bump regex to 2023.5.5 (#10138)
Release: https://pypi.org/pypi/regex/2023.5.5
Homepage: https://github.com/mrabarnett/mrab-regex
Diff: https://github.com/mrabarnett/mrab-regex/compare/2023.5.4...2023.5.5

Stubsabot analysis of the diff between the two releases:
 - Total lines of Python code added: 2.
 - Total lines of Python code deleted: 2.
2023-05-04 06:06:45 +01:00
Sebastian Rittau
f1c419e816 [fpdf2] Update stubs for fpdf 2.7.4 (#10136)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-05-03 16:52:43 +01:00
Jun Komoda
05c0a1d8b2 move byref-related definitions from ctypes/__init__.pyi to _ctypes.pyi (#10137) 2023-05-03 16:50:47 +01:00
Sebastian Rittau
ec1130adcc [fpdf2] Update to 2.7.1 (#9978) 2023-05-03 17:06:12 +02:00
Sebastian Rittau
81f6beda9e Document sys.std* typing (#10135) 2023-05-03 16:30:37 +02:00
Jelle Zijlstra
8e24885da7 paramiko: Improve various bytes-related types (#10109) 2023-05-03 15:53:54 +02:00
danieleades
6b5ca0b238 [docutils] Add items to docutils.node (#10102)
* Add class paragraph
* Add class TextElement
* Add Element.index(), .remove(), and .insert()
2023-05-03 12:45:08 +02:00
Victor Westerhuis
0b60e7fac5 Add Markdown.ESCAPED_CHARS to Markdown stubs (#10134) 2023-05-03 10:24:57 +01:00
Jun Komoda
01b09d4371 Move some pointer-related definitions from ctypes/__init__.pyi to _ctypes.pyi (#10133) 2023-05-03 10:04:13 +01:00
github-actions[bot]
06878a98be [stubsabot] Bump regex to 2023.5.4 (#10131)
Release: https://pypi.org/pypi/regex/2023.5.4
Homepage: https://github.com/mrabarnett/mrab-regex
Diff: https://github.com/mrabarnett/mrab-regex/compare/2023.3.23...2023.5.4

Stubsabot analysis of the diff between the two releases:
 - Total lines of Python code added: 8.
 - Total lines of Python code deleted: 3.
2023-05-03 01:28:29 +01:00
Jun Komoda
ce531f897f move some non-pointer-related definitions from ctypes/__init__.pyi to _ctypes.pyi (#10130)
- `ArgumentError`
- `addressof`
- `alignment`
- `get_errno`
- `resize`
- `set_errno`
- `sizeof`
2023-05-02 16:54:42 +01:00
Avasam
1caac913ea Add stubdefaulter to create_baseline_stubs.py (#10127) 2023-05-02 11:31:34 +01:00
Jun Komoda
bbeec7cbbf Move some Windows-specific things from ctypes/__init__.pyi to _ctypes.pyi (#10128)
- `FormatError`
- `get_last_error`
- `set_last_error`
2023-05-02 11:21:55 +01:00
Alex Waygood
d208d5a833 Pyright: create a more isolated environment in CI for testing stubs (#10121) 2023-05-01 19:02:45 +01:00
Tim Stumbaugh
f5a870b987 Convert the remaining ujson uses of AnyStr (#10086)
Followup from #10081
2023-05-01 08:24:25 -07: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
Jun Komoda
295a5c3e7a Move Structure and Union from ctypes/__init__.pyi to _ctypes.pyi (#10125) 2023-05-01 13:01:41 +01:00
Jun Komoda
ae0c9f9dad Move _SimpleCData and Array from ctypes/__init__.pyi to _ctypes.pyi (#10118) 2023-04-30 21:22:46 +01: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
Avasam
2f9ba99c21 Restore error output in runtests.py (#10110) 2023-04-29 18:17:26 +01:00
Jelle Zijlstra
0f270e61bf docutils: Input can take bytearray (#10108)
Part of #9006
2023-04-29 16:09:14 +01:00
Jelle Zijlstra
b9e9540db4 chardet: UniversalDetector.feed accepts bytearray (#10107)
Technically it accepts any buffer, but the inline type annotations
now say bytes | bytearray, so let's stick to that.

Part of #9006
2023-04-29 16:08:37 +01:00
Jelle Zijlstra
4e52cf1b71 bs4: NavigableString accepts ReadableBuffer (#10106)
It delegates to str.__new__.
2023-04-29 15:54:09 +01:00
Jelle Zijlstra
17edf76275 aiofiles: use ReadableBuffer (#10105)
Part of #9006
2023-04-29 15:50:48 +01:00
danieleades
9772c425a2 docutils: add nodes.General; make Element iterable (#10099)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-04-29 15:43:39 +01:00
Jelle Zijlstra
40975222b4 multiprocessing: Queue does not inherit from queues.Queue (#10104)
Fixes #3404
2023-04-29 15:39:11 +01:00
Nikita Sobolev
f42f665fa1 Update hdbcli to 2.16 and mark as completed (#10101) 2023-04-29 06:26:16 -07:00
Alex Waygood
2d84e56d6f Update requests for v2.29 (#10097) 2023-04-29 00:44:51 +01:00
github-actions[bot]
dd7d2121c3 [stubsabot] Mark dj-database-url as obsolete since 2.0.0 (#10094)
Release: https://pypi.org/pypi/dj-database-url/2.0.0
Homepage: https://github.com/jazzband/dj-database-url
Diff: https://github.com/jazzband/dj-database-url/compare/v1.3.0...v2.0.0

Co-authored-by: stubsabot <>
2023-04-28 07:26:00 +01:00
Avasam
fb4bf034f3 Add fixers to lib2to3 (#10003) 2023-04-27 21:56:56 -07:00
Tomas R
a7748a9dd1 Add missing stubs for logging.config (#10055)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-04-27 07:57:46 -07:00
Mehdi Drissi
11f5858f0b tensorflow: feature columns (#10052)
Co-authored-by: Mehdi Drissi <mdrissi@snapchat.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-04-27 05:08:51 -07:00
Christian Bundy
b4ad214754 Add object.__getstate__() in Python 3.11+ (#10091) 2023-04-27 05:05:54 -07:00
Francesc Elies
ca3611238b cffi: improve getitem and setitem (#9968)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-04-26 22:14:54 -07:00
Alex Waygood
2dd268d74a influxdb-client: fix stubtest (#10090) 2023-04-26 19:28:35 -07:00
github-actions[bot]
9e4613789c [stubsabot] Mark urllib3 as obsolete since 2.0.0 (#10087)
Release: https://pypi.org/pypi/urllib3/2.0.0
Changelog: https://github.com/urllib3/urllib3/blob/main/CHANGES.rst
Diff: https://github.com/urllib3/urllib3/compare/1.26.15...2.0.0

Co-authored-by: stubsabot <>
2023-04-27 02:33:22 +01:00
Avasam
6cb8bc0ac4 Mark SQLAlchemy stubs with ignore_missing_stub = false (#9653)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-04-26 17:49:46 -07:00
Avasam
4930ebade4 Type PyInstaller.building.api and related modules (#9730)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-04-26 17:49:30 -07:00
Mehdi Drissi
01972e0e51 tensorflow: Add legacy optimizers (#9997) 2023-04-26 15:15:41 -07:00
David Robertson
f7443a748e Add a return type for PIL.Image.load (#9466)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-04-26 19:46:54 +03:00
Xavier Trochu
c4b6d635ab paramiko: Be more lenient for client parameter types (#10083)
Use Mapping instead of dict for better covariance

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-04-25 12:35:10 -06:00