Commit Graph

10122 Commits

Author SHA1 Message Date
Alex Waygood
0023f5a169 Run the "typecheck our own code" workflow on PRs touching the lib/ directory (#13394) 2025-01-11 12:56:01 +00:00
Sebastian Rittau
f26ad2059e Remove Python3.8 stubtest allowlists (#13389)
Consolidate remaining allowlists
2025-01-10 15:17:36 +01:00
Sebastian Rittau
10ebc999ee Officially drop Python 3.8 support (#13386) 2025-01-10 15:06:22 +01:00
Sebastian Rittau
822fae31e5 Remove Python 3.8 from CI (#13387) 2025-01-10 14:15:39 +01:00
Sebastian Rittau
f2c917ff52 Remove redundant version branch (#13388) 2025-01-10 14:14:55 +01:00
github-actions[bot]
a920fd6479 [stubsabot] Bump lupa to 2.3.* (#13383)
Release: https://pypi.org/pypi/lupa/2.3
Homepage: https://github.com/scoder/lupa
Repository: https://github.com/scoder/lupa
Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/lupa
2025-01-10 00:17:41 -08:00
Stephen Morton
2a030be2e9 fix ctypes.GetLastError (#13379) 2025-01-09 19:03:56 -08:00
pinterior
46cbe78e4c fix Telnet#expect (stdlib/telnetlib.pyi) (#13377)
fix type of Telnet#expect
2025-01-09 19:01:27 -08:00
Stephen Morton
e55c13a612 update allowlist comment for SupportsAbs and SupportsRound (#13380)
The answer to the question is that mypy infers it just fine, but
stubtest doesn't check for attributes inherited from the metaclass
because that's almost never what we want. In this case,
the runtime implementation doesn't get __type_params__ from
builtins.type either. It's actually defined for the class due to
the use of PEP-695 syntax.
2025-01-09 14:00:54 -08:00
David Peter
614e9499f1 Annotate sys.platform as LiteralString (#13378) 2025-01-09 18:58:44 +01:00
Avasam
e3e5971fe7 Bump setuptools to 75.8.* (#13367) 2025-01-09 12:02:23 +01:00
Trim21
0ab97c3060 Allow renovate to upgrade additional_dependencies in Python pre-commit hooks (#13368) 2025-01-08 12:42:35 +00:00
pre-commit-ci[bot]
dc1ce5f567 [pre-commit.ci] pre-commit autoupdate (#13375) 2025-01-06 16:57:35 -08:00
github-actions[bot]
a51dd6d6d8 [stubsabot] Bump Pygments to 2.19.* (#13370)
Release: https://pypi.org/pypi/Pygments/2.19.0
Homepage: https://pygments.org
Repository: https://github.com/pygments/pygments
Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/Pygments
Changelog: https://github.com/pygments/pygments/blob/master/CHANGES
Diff: https://github.com/pygments/pygments/compare/2.18.0...2.19.0

Stubsabot analysis of the diff between the two releases:
 - 9 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 36 files included in typeshed's stubs have been modified or renamed.
 - Total lines of Python code added: 2960.
 - Total lines of Python code deleted: 694.
2025-01-06 09:58:15 -08:00
Maico Timmerman
3de624f980 Improve return type for socket.getaddrinfo for missing ipv6 support (#13372) 2025-01-06 14:40:07 +01:00
Avasam
9f28171658 Update vscode recommended settings to not cleanup noqa'd unused imports (#13363) 2025-01-04 10:37:02 +00:00
Avasam
33d1b169c1 Enable Ruff TRY (tryceratops) (#13359) 2025-01-03 00:42:49 +00:00
Avasam
9c959a7dd3 Enable Ruff D (pydocstyle) with pep257 convention (#13326)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-01-02 22:05:35 +00:00
renovate[bot]
a151457936 Update Ruff & uv (#13353)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-01-02 21:30:50 +00:00
Max Muoto
88e917a87b Fix types in _interpqueues and _interpreters (#13355) 2025-01-02 13:04:23 -08:00
Peter Bierma
1244636a01 Add stub for sys._is_gil_enabled() (#13358) 2025-01-02 12:28:32 -08:00
Avasam
0cebf26ecd Enable some Ruff TC rules (flake8-type-checking) (#13333) 2025-01-02 19:04:53 +00:00
Avasam
a540f78784 Enable Ruff EXE (flake8-executable) (#13346) 2025-01-02 18:34:05 +00:00
Avasam
e02e7ad5da Enable Ruff ANN2 (flake8-annotations, autofixes only) (#13331) 2025-01-02 10:36:52 +00:00
Avasam
73ce98b5a3 Enable Ruff N (pep8-naming) on non-stubs (#13327) 2025-01-02 10:22:40 +00:00
Avasam
67568b5e19 Enable some Ruff FURB rules (#13310)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-01-02 10:10:58 +00:00
Konstantin Baikov
4ce9f24f39 Add some defaults to tkinter.filedialog (#13345)
Partially fixes: https://github.com/python/typeshed/issues/11482

Source of fixes based on the @akuli comment: https://github.com/python/typeshed/issues/11482#issuecomment-1981710718
2025-01-01 22:00:22 +02:00
renovate[bot]
b66d6cfa99 Update most test/lint dependencies (#13352)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-12-31 16:50:42 -08:00
Shantanu
2047b82073 Run primer with 3.13 (#12819) 2024-12-30 16:49:32 -08:00
github-actions[bot]
365b514003 [stubsabot] Bump ibm-db to 3.2.5 (#13348)
Release: https://pypi.org/pypi/ibm-db/3.2.5
Homepage: http://pypi.python.org/pypi/ibm_db/
Repository: https://github.com/ibmdb/python-ibmdb
Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/ibm-db
Diff: https://github.com/ibmdb/python-ibmdb/compare/v3.2.4...v3.2.5

Stubsabot analysis of the diff between the two releases:
 - Total lines of Python code added: 13.
 - Total lines of Python code deleted: 9.
2024-12-30 16:34:42 -08:00
Axel H.
d634fc2f52 fix(yaml): SafeConstructor.construct_scalar accept MappingNode (#13340) 2024-12-29 18:17:02 -08:00
Ali Hamdan
03167c8cad optparse: Improve Values types (#13338) 2024-12-29 18:16:18 -08:00
Ali Hamdan
7d925307cf optparse: Improve Option and OptionContainer types (#13337)
optparse: Improve Option and OptionContainer types

Also add comments for use of `Any`
2024-12-29 18:14:22 -08:00
Bartosz Sławecki
7febf03741 Make signal global enum constants annotated as literals (#13336) 2024-12-29 18:11:42 -08:00
Refael Ackermann
ca6251ad64 stdlib: new signature for CDLL in 3.12 (#13313) 2024-12-29 17:24:12 -08:00
Avasam
ebc9ff8718 Enable Ruff ARG (flake8-unsued-arguments) and remove unused arguments (#13334) 2024-12-29 17:21:19 -08:00
Stephen Morton
432d8db627 fix gevent.select.poll (#13335)
fixes #13330
2024-12-29 17:19:48 -08:00
github-actions[bot]
1bb8a3a86c [stubsabot] Bump Authlib to 1.4.* (#13329)
Release: https://pypi.org/pypi/Authlib/1.4.0
Repository: https://github.com/lepture/authlib
Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/Authlib
Diff: https://github.com/lepture/authlib/compare/v1.3.2...v1.4.0

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 5 files included in typeshed's stubs have been modified or renamed: `authlib/consts.py`, `authlib/jose/rfc7517/key_set.py`, `authlib/oauth2/rfc9068/introspection.py`, `authlib/oauth2/rfc9068/revocation.py`, `authlib/oidc/core/grants/util.py`.
 - Total lines of Python code added: 90.
 - Total lines of Python code deleted: 13.
2024-12-29 17:16:55 -08:00
Konstantin Baikov
d69a864a88 Use SupportsWrite in curses instead of IO Any (#13325)
The source used to deduce  this: aea2e03b27/Modules/_cursesmodule.c (L2158)
2024-12-29 17:12:42 -08:00
Ali Hamdan
ce36fd4b8c argparse: Use SupportsWrite instead of IO (#13324) 2024-12-29 17:12:13 -08:00
codekoriko
5a10be14db pyAutoGui: Correct Return Type of position() to Match Actual Behavior (#11267)
Co-authored-by: Avasam <samuel.06@hotmail.com>
2024-12-29 17:11:14 -08:00
Avasam
a2e4137f65 Remove redundant Bugbear disabling in stubs (#13308) 2024-12-29 17:10:18 -08:00
Avasam
2cdda12df7 Move RUF022+RUF023 ignores to stubs only and remove TODO (#13322)
Move RUF022+RUF023 to stubs only and remove TODO
2024-12-28 19:30:24 +00:00
Stephen Morton
801c5c9495 improve identity of threading module's Lock and RLock (#12966) 2024-12-28 08:00:04 -08:00
Victorien
eb8af63e70 Add stubs for django-import-export (#11709) 2024-12-28 07:56:31 -08:00
Shantanu
ff4237fa24 Match mypy primer comment code (#13318)
These actions diverged, making them more closely match makes it easier
to maintain
2024-12-27 22:40:41 -08:00
James Hilton-Balfe
ab75b691c2 Make collections.abcs more consistent with runtime implementation (#10816)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-12-27 21:31:59 -08:00
Dun L
d2ca658a69 Fix missed type hints in docker containers.pyi (#13136)
Previously, `Container.exec_run` and `Container.get_archive` missed type hints on `cmd` and `path` arguments, respectively.
Added type hints based on docstring.
2024-12-27 21:14:27 -08:00
Stephen Morton
a4b7c36366 add missing things in multiprocessing (#13153) 2024-12-27 21:13:30 -08:00
PyHedgehog
2c27933bbb Add stubs for "click-log" package (#13207) 2024-12-27 21:10:41 -08:00