Commit Graph

9564 Commits

Author SHA1 Message Date
Jan Kühle
99f6238b91 Update pytype to 2024.09.13 and Python 3.12 (#12653) 2024-09-13 14:01:46 +02:00
Jan Kühle
d326c9bd42 Filter pytype tests by stdlib/VERSIONS file (#12649)
Filter the files to run pytype tests on by stdlib/VERSIONS file. This
becomes important for Python 3.12, where e.g. checking asynchat.pyi
requires asyncore.pyi, both of which have been removed in 3.12.
2024-09-12 18:40:19 +02:00
Sebastian Rittau
bc6b3b2aba [python-datemath] Pin and mark as obsolete (#12645)
Closes: #12640
2024-09-12 07:25:11 -07:00
Sebastian Rittau
97ce200343 [pyasn1] Remove items removed from 0.6.1 (#12646) 2024-09-12 05:11:59 -04:00
Sebastian Rittau
a29d6710a5 Move platform-specific allowlist entries (#12644) 2024-09-12 11:04:07 +02:00
github-actions[bot]
6c703a3dfd [stubsabot] Bump pytz to 2024.2 (#12639) 2024-09-12 08:46:22 +02:00
github-actions[bot]
6259b61658 [stubsabot] Bump regex to 2024.9.11 (#12641)
Release: https://pypi.org/pypi/regex/2024.9.11
Homepage: https://github.com/mrabarnett/mrab-regex
Repository: https://github.com/mrabarnett/mrab-regex
Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/regex
Diff: https://github.com/mrabarnett/mrab-regex/compare/2024.7.24...2024.9.11

Stubsabot analysis of the diff between the two releases:
 - Total lines of Python code added: 7.
 - Total lines of Python code deleted: 3.

If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR

Note that you will need to close and re-open the PR in order to trigger CI

Co-authored-by: stubsabot <>
2024-09-11 20:47:52 -04:00
Sebastian Rittau
c7c430857e stdlib updates for latest Python patch releases (#12638) 2024-09-11 17:58:24 +02:00
Skye Im
9d6fc1dafd mysqlclient: Annotate Connect() return type (#12633) 2024-09-10 14:21:13 +02:00
Alberto Jiménez López
65170f4a2e Add stubs for python-http-client (#12626) 2024-09-09 05:08:38 +02:00
Max Muoto
089953ed84 Fix doctest for 3.13 (#12625) 2024-09-08 12:38:13 +02:00
Adam Dangoor
61ed105cdb Mark _TemporaryFileWrapper argument as positional-only (#12624)
The following code errors at runtime:

```python
import tempfile

with tempfile.NamedTemporaryFile() as f:
	f.write(s=b"")
```

```
TypeError: BufferedRandom.write() takes no keyword arguments
```
2024-09-07 02:33:02 -07:00
Clément Pit-Claudel
e8e9291c76 Fix type of transform argument of docutils.nodes.pending.__init__ (#12459) 2024-09-07 00:30:02 +02:00
Peter Bierma
fb4a92d12b Add stubs for objgraph (#12608)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-09-06 15:27:00 -07:00
danieleades
b48d6f5f74 add type stubs for 'docutils.parsers.rst.directives.references' (#12442) 2024-09-06 15:09:33 -07:00
Avasam
0784bf6bee distutils: add missing generated attributes (#12467) 2024-09-06 15:07:44 -07:00
Niklas Rosenstein
7a2807af4e Fix networkx DiDegreeView.__call__() can return int (#12472)
Fix networkx `DiDegreeView.__call__()`

`DiDegreeView.__call__()` can return an integer if a single node is specified, as is also documented in the docstrings of the method:

89718e0514/networkx/classes/digraph.py (L1198-L1199)

Implementation:

89718e0514/networkx/classes/reportviews.py (L436-L437)
2024-09-06 15:07:25 -07:00
Stephen Finucane
b3774bc22b requests: Session.adapters is a mapping of Adapters (#12473)
Signed-off-by: Stephen Finucane <stephen@that.guru>
2024-09-06 15:05:55 -07:00
Sebastian Rittau
cc45a6e9ba Move BufferedIOBase.raw to sub-classes (#12571) 2024-09-06 15:03:08 -07:00
Sebastian Rittau
a8f09b1d5c [influxdb-client] Use SupportsContainsAndGetItem (#12612) 2024-09-06 14:35:41 -07:00
Raphaël Boudreault
e8ad9437b3 Update MergeFrom annotations in protobuf containers.pyi (#12623) 2024-09-06 14:35:16 -07:00
Anders Kaseorg
3624e534b0 beautifulsoup4: Accept void_element_close_prefix=None (#12621) 2024-09-06 10:36:09 +02:00
Sebastian Rittau
346fef2137 [setuptools] Update to 74.1.* (#12614)
---------

Co-authored-by: Avasam <samuel.06@hotmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-05 10:45:52 -04:00
Gareth Rees
f4da13bfec [python-dateutil] Add dateutil.parser.UnknownTimezoneWarning. (#12620) 2024-09-05 13:18:31 +02:00
renovate[bot]
236ec8e9cf Update dependency pyright to v1.1.379 (#12617)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-05 02:25:05 +02:00
Sebastian Rittau
6441408aaa Use TypedDict for return type of localeconv() (#12600)
Mark constants as Final in _locale.pyi
2024-09-05 02:13:41 +02:00
Avasam
89e0b691db Enable more Ruff PYI rules with autofixes (#12557) 2024-09-04 19:50:07 -04:00
Adam Dangoor
59f612f514 Add hint for requests.models.Response.raw (#12616) 2024-09-04 12:15:53 +02:00
John Lettman
13e3deb033 Add stubs for xdgenvpy (#12615) 2024-09-04 12:06:28 +02:00
Auguste Lalande
4101e74236 Add stubs for Jetson.GPIO (#12108) 2024-09-02 15:05:51 +02:00
elijahr
4d75bc89ec Redis: Correct ExpiryT alias (#12611) 2024-09-02 08:58:02 +02:00
github-actions[bot]
001c3b6495 [stubsabot] Bump python-datemath to 3.0.* (#12583)
Co-authored-by: stubsabot <>
2024-09-01 18:36:00 +01:00
github-actions[bot]
33295b694e [stubsabot] Bump pyfarmhash to 0.4.* (#12597)
Co-authored-by: stubsabot <>
2024-09-01 18:31:34 +01:00
github-actions[bot]
0f0e71d777 [stubsabot] Bump Flask-Cors to 5.0.* (#12609)
Co-authored-by: stubsabot <>
2024-09-01 18:30:23 +01:00
Tomas R
6b1566d81c Fix signature of CodecInfo.decode (#12610)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2024-09-01 20:28:13 +03:00
Vito De Tullio
4507d26ef2 curses: mark keypad yes parameter as positional only (#12605)
matches the runtime check: "TypeError: window.keypad() takes no keyword arguments"
2024-09-01 20:20:31 +03:00
Alan Du
23d867efb2 Fix types for psutil.cpu_* functions (#12602) 2024-08-31 13:03:42 +03:00
Avasam
f87041e118 distutils: expose Command.dry_run + make 0|1 attrs bool (#12607) 2024-08-30 18:32:54 +02:00
Andrew Murray
4109c06d07 Added types for atheris (#12462) 2024-08-30 14:36:34 +02:00
Avasam
661fe27658 Bump setuptools to 74.0.* (#12599) 2024-08-29 18:53:16 +02:00
Peter Bierma
1a59cc28ba Add complex arithmetic types to ctypes (#12480) 2024-08-29 17:27:37 +02:00
Max Muoto
63db21eaa0 Add __replace__ for AST and AST subclasses (#12486) 2024-08-29 17:25:54 +02:00
Max Muoto
ad6eed0777 Add _thread.start_joinable_thread and _thread.lock for 3.13 (#12588) 2024-08-29 17:20:02 +02:00
Max Muoto
70e9748f18 Fix _thread.interrupt_main for 3.10+ (#12586) 2024-08-29 17:10:17 +02:00
Sebastian Rittau
039c6bcdb1 Use Self for email.message attachments (#12530)
---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Avasam <samuel.06@hotmail.com>
2024-08-29 10:48:32 -04:00
renovate[bot]
10a083cfb1 Update dependency pyright to v1.1.378 (#12603)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-28 19:28:12 -07:00
Shamil
f58dac1d62 [Flask-Cors] Mark constants using Final (#12596) 2024-08-27 10:41:39 +02:00
Károly Szabó
257691b5c5 [docker-py] Fix 'volumes' argument type hint for 'run' and 'create' functions in containers.pyi (#12594) 2024-08-26 15:20:02 +02:00
Sebastian Rittau
7c1378cc25 Document policy for future Python versions (#12592)
Closes: #12569
2024-08-25 18:24:08 +02:00
Sebastian Rittau
24abaf0e86 pyserial: Replace IO classes with protocols (#12572) 2024-08-25 17:06:43 +02:00