Sebastian Rittau
014818de79
[geopandas] Some @final methods are overridden ( #14657 )
2025-08-28 12:44:31 +02:00
Sebastian Rittau
ff32af2c65
[CI] Move installing 3rd party pks into extra step ( #14652 )
2025-08-27 16:26:32 +02:00
Sebastian Rittau
a64dfff8df
[CI] Remove some Python 3.14 workarounds ( #14651 )
2025-08-27 06:47:06 -07:00
Sebastian Rittau
f8773eb27a
Improve unittest.mock stubs ( #14421 )
...
* Add `patch()` default arguments.
* Forbid certain argument combinations for `patch()`.
* Reorder `patch()` overloads.
* Add `unsafe` argument.
* Add overloads for `path.multiple()`.
2025-08-22 09:31:26 +02:00
Sebastian Rittau
aeb9aa3349
Remove type alias _CallableElement in ElementTree ( #14476 )
...
Remove _CallableElement and make _ElementCallable recursive
2025-08-21 07:02:04 -07:00
Sebastian Rittau
554701e9b6
Fix ItemsView.__contains__ ( #14576 )
2025-08-15 11:52:09 +02:00
Sebastian Rittau
1c6a015f41
Remove a superflous allowlist entry ( #14571 )
2025-08-13 12:26:30 +02:00
3f08a4ed10
Split tool.stubtest.platforms metadata key ( #13746 )
...
Co-authored-by: Avasam <samuel.06@hotmail.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-31 12:07:20 -04:00
Sebastian Rittau
eb96b7dbc8
stubsabot: Handle errors when determining action ( #14473 )
...
Use colors for output and move processed distribution name to the front
2025-07-27 13:49:00 +02:00
Sebastian Rittau
d5c37811c5
Remove obsolete comments from turtle.pyi ( #14474 )
...
While it would be possible to use the hack described in the comment
now that pytype support has been removed, that hack is a bit too
"magical" for stubs that are supposed to be fairly straight-forward
API descriptions. This would also introduce extra stub-only attributes
and would imply that e.g. `_Screen.setup()` and `setup()` refer to the
same object at runtime when they don't.
2025-07-27 13:33:30 +02:00
Sebastian Rittau
981bd8eb8d
Remove pytype workarounds from third-party stubs ( #14471 )
2025-07-27 13:05:57 +02:00
7e16c80989
Remove some pytype workarounds from stdlib ( #14470 )
...
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-07-27 11:56:26 +01:00
Sebastian Rittau
1a256d8211
[CI] Run pyright tests with Python 3.13 ( #14469 )
2025-07-27 12:49:01 +02:00
Sebastian Rittau
aebefb1754
Remove support for pytype ( #14463 )
2025-07-27 11:47:37 +02:00
Sebastian Rittau
f15658bfe4
[CI] Use version from requirements for setup-uv ( #14082 )
2025-07-26 17:39:21 +02:00
Sebastian Rittau
8317409c18
[ctypes] Replace two instances of Any ( #14047 )
2025-07-26 16:24:04 +02:00
Sebastian Rittau
82edad066f
Updates for Python 3.14rc1 ( #14446 )
2025-07-24 16:30:00 +02:00
Sebastian Rittau
217be6680a
Improve suggested annotations for sentinel types ( #14435 )
2025-07-21 15:30:00 +02:00
Sebastian Rittau
d5af6bee35
Clean up deprecated ast.Constant aliases ( #14397 )
...
Add `__new__`, remove fields, mark deprecated `Constant` fields as such.
2025-07-11 14:59:53 +02:00
Sebastian Rittau
9ac95d40d5
[Authlib] Mark as partial again ( #14394 )
...
Some integrations are missing from the stubs
2025-07-10 12:11:51 +02:00
Sebastian Rittau
096cf56da3
Revert "Let SupportsDunderLT return SupportsBool instead of `bool… ( #14373 )
...
Revert "Let `SupportsDunderLT` return `SupportsBool` instead of `bool`. (#12939 )"
This reverts commit aed8025d62 .
2025-07-07 16:25:23 +02:00
Sebastian Rittau
e9bbd91fdf
Remove flake8 F821 checks for stubs ( #14367 )
...
F821 is only checked as a test for the F821 monkeypatch functionality in
flake8-pyi, but that will be removed.
2025-07-04 13:07:17 +02:00
Sebastian Rittau
2408c028f4
[Authlib] Update to 1.5.2 ( #13840 )
2025-07-03 15:22:57 +02:00
Sebastian Rittau
42b13697ed
[typing-extensions] Update to 4.14.0 final ( #14214 )
2025-06-02 17:12:37 +02:00
Sebastian Rittau
106078c377
Remove atheris ( #14212 )
...
Closes : #14185
2025-06-02 14:40:55 +03:00
Sebastian Rittau
0c4ae3edaa
[atheris] Mark as no longer updated ( #14187 )
2025-06-02 10:10:08 +02:00
Sebastian Rittau
09b6802dc7
[openpyxl] Remove unnecessary overload ( #14201 )
2025-06-01 17:46:22 +02:00
Sebastian Rittau
5a3c495d2f
[dateparser] Improve parse-related annotations ( #14199 )
...
Add a `# type: ignore`. Helps with #14194
2025-05-31 16:00:54 -07:00
Sebastian Rittau
3c8c233991
[geopandas] Add a # type: ignore ( #14200 )
...
Should help with #14194
2025-05-31 16:00:37 -07:00
Sebastian Rittau
252acdf0bc
[reportlab] Add # type: ignores ( #14202 )
...
Helps with #14194
2025-05-31 15:55:09 -07:00
Sebastian Rittau
f030ef0f76
[peewee] Mark field_type as ClassVar ( #14203 )
...
Should help with #14194
2025-05-31 15:54:46 -07:00
Sebastian Rittau
846587775f
[passlib] Small changes ( #14204 )
...
* Add a few `Self` return annotations.
* Add a few `# type: ignore[override]`.
* Add a few `@deprecated` annotations.
Should help with #14194
2025-05-31 15:54:09 -07:00
Sebastian Rittau
cac9957da6
[vobject] Partly annotate validate methods ( #14205 )
...
Should help with #14194
2025-05-31 15:52:40 -07:00
Sebastian Rittau
8d1ac2e5ba
Remove tree-sitter-languages ( #14206 )
...
Closes : #14184
2025-05-30 22:18:34 +03:00
Sebastian Rittau
11a2066a70
[tree-sitter-languages] Mark as no longer updated ( #14186 )
2025-05-30 19:35:13 +03:00
Sebastian Rittau
38ec95323e
Update to Python 3.14.0b2 ( #14182 )
2025-05-28 12:02:19 +02:00
Sebastian Rittau
033c85df99
Remove old cycle-prevention workaround ( #14180 )
...
This was used to prevent an import cycle that exists
anyway nowadays via `_typeshed`.
2025-05-28 11:31:36 +02:00
Sebastian Rittau
e3cae530c9
[CI] Update apt cache before installing apt packages ( #14181 )
2025-05-28 11:14:44 +02:00
Sebastian Rittau
b01e7aa9d2
Remove old compatibility alias _BufferWithLen ( #14151 )
2025-05-27 14:38:04 +02:00
Sebastian Rittau
ea39b363e0
Remove corus (again) ( #14169 )
2025-05-27 11:58:31 +02:00
Sebastian Rittau and Jelle Zijlstra
07c09a442a
Update typing-extensions to 4.14.0rc1 ( #14139 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2025-05-25 16:49:22 +01:00
Sebastian Rittau
6007267f68
[icalendar] Update to 6.3.1 ( #14105 )
2025-05-20 14:02:44 +02:00
Sebastian Rittau
66cf58e126
Add tests for MutableMapping.update() ( #14104 )
2025-05-20 13:45:18 +02:00
Sebastian Rittau
0125fe2848
Replace Incomplete | None = None in stdlib ( #14083 )
2025-05-16 15:43:52 +02:00
Sebastian Rittau
5785616f7a
[CI] Update astral-sh/setup-uv ( #14081 )
2025-05-16 13:27:18 +02:00
Sebastian Rittau
1b260748ad
Update uv to 0.7.4 ( #14080 )
...
Tries to fix #14079 .
2025-05-16 07:06:14 -04:00
Sebastian Rittau
126768408a
Replace Incomplete | None = None in third party stubs ( #14063 )
2025-05-15 21:37:43 +02:00
Sebastian Rittau
acc51542c9
Update reportlab to 4.4.1 ( #14073 )
2025-05-15 12:47:56 -04:00
Sebastian Rittau
51db4055d0
[requests] Add a _JSON type alias ( #14064 )
2025-05-14 15:38:10 +02:00
Sebastian Rittau
7cc094da50
[ctypes] Fix argument name ( #14048 )
2025-05-13 15:16:35 +03:00
Sebastian Rittau
e08e349699
Replace incomplete module markers ( #14030 )
2025-05-13 08:53:39 +02:00
Sebastian Rittau
e224b28f32
Fix variance of a few email-related classes ( #13952 )
...
Closes #13919
2025-05-12 16:12:32 -07:00
Sebastian Rittau
1ebbbeec75
Make BufferedReader generic over a protocol ( #13533 )
2025-05-11 16:24:31 +02:00
Sebastian Rittau
b444909873
Copy typechecker-internal symbols to _typeshed._type_checker_internals ( #13816 )
2025-05-11 16:07:53 +02:00
Sebastian Rittau
4118cf8a45
Add io.{Reader,Writer} ( #14013 )
2025-05-11 06:41:46 -07:00
Sebastian Rittau
2d50d6b316
Support Python 3.14 ( #13957 )
2025-05-10 06:27:40 -07:00
Sebastian Rittau
9a0ad91944
[CI] Install apt dependencies when running "mypy: Check stubs" ( #13979 )
...
Extracted from #13957
2025-05-09 12:46:00 -07:00
Sebastian Rittau
2d46095e3f
Fix errors when type checking stdlib with Python 3.14 ( #13977 )
2025-05-09 21:04:35 +02:00
Sebastian Rittau
168af67fb8
[CI] Fix "mypy: Check stubs" when using specific Python version ( #13975 )
2025-05-09 20:26:53 +02:00
Sebastian Rittau
6e2525aa00
[geopandas] Fix CI tests in some circumstances ( #13978 )
...
Add "libproj-dev" and "proj-bin" to apt_dependencies.
These packages are necessary to build the pyproj
dependency if a pre-built wheel is not available.
2025-05-09 20:26:16 +02:00
Sebastian Rittau
785c9c4688
[CI] Install apt dependencies when running "pyright: Run test cases" ( #13976 )
2025-05-09 19:31:03 +02:00
Sebastian Rittau
0eb44e574c
Clean up and fix email message types ( #13532 )
...
* Unify the `_MessageT` type var in `email._policybase`.
* Use explicit type arguments for `Message` type in `_MessageT` type var.
In particular, change bound from `Message[str, str]` to `Message[Any, Any]`.
* Change `__init__()` overloads of `Parser` and `BytesParser` to accept
`Message` objects that are not `Message[str, str]` if `_class` is not also given.
2025-05-05 11:59:51 -04:00
Sebastian Rittau
12ef43c8d0
Rename "Preparing Changes" to "Making Changes" ( #13901 )
...
And integrate the "Code Style" chapter there. This makes the actual
chapter structure follow the overview structure.
2025-04-29 01:04:45 +02:00
Sebastian Rittau
2d60b4bd9c
Mark ExifRead as obsolete ( #13899 )
2025-04-28 14:01:44 +02:00
Sebastian Rittau
dd8532343d
[fpdf2] Update to 2.8.3 ( #13871 )
2025-04-25 12:16:28 +02:00
Sebastian Rittau
45c0e52b30
Remove obsolete mentions of Python 3.8 ( #13842 )
2025-04-16 11:43:31 +02:00
Sebastian Rittau
b67e0da207
Remove obsolete type alias _CursesWindow ( #13841 )
2025-04-16 11:43:06 +02:00
Sebastian Rittau
ef0ee2087c
Update authlib to 1.5.* ( #13540 )
2025-04-15 17:08:24 -04:00
Sebastian Rittau
dfea9a6a26
Document visit method return type ( #13831 )
2025-04-15 18:09:33 +02:00
Sebastian Rittau
de317e1c74
Simplify and fix urllib.parse.urlencode() ( #13815 )
...
Remove overloads and type vars. Introduce a protocol for the
`quote_via` argument. This means that the interface accepted by the
supplied `quote_via` is stricter, and is not dependent on the actual
supplied types in the `query` argument, but must work with all
possible query types.
2025-04-14 11:11:06 +02:00
Sebastian Rittau
4a89c1b44c
Update croniter to 6.0.0 ( #13548 )
...
Make class `croniter` generic over `ret_type` and tighten return types for some methods.
2025-04-11 02:10:49 +02:00
Sebastian Rittau
1c17cd429c
renovate: Try disabling Python updates (try #3 ) ( #13790 )
2025-04-03 19:40:51 +02:00
Sebastian Rittau
0c59eb8bbb
Try to disable Python in github-actions ( #13789 )
2025-04-03 19:14:05 +02:00
Sebastian Rittau
1edf4e819a
Migrate renovate config ( #13784 )
2025-04-03 11:23:19 +01:00
Sebastian Rittau
30b16c168d
Drop Python 3.8 branches ( #13776 )
2025-04-03 10:35:36 +02:00
Sebastian Rittau
977f3007b9
Remove Python 3.8 exclusive branches ( #13772 )
2025-04-02 12:32:50 +02:00
Sebastian Rittau
27729455a5
Remove dummy threading modules ( #13771 )
...
Removed in Python 3.8, part of #12112
2025-04-02 12:27:24 +02:00
Sebastian Rittau
bfd032156c
[JACK-Client] All METADATA_ constants are sometimes available on Linux ( #13639 )
2025-04-01 02:22:59 +02:00
Sebastian Rittau
fb79994077
[pyflakes] Update to 3.3.* ( #13745 )
2025-03-31 13:04:49 +02:00
Sebastian Rittau and pre-commit-ci[bot]
71e01e3871
Update setuptools to 78.1.0 ( #13734 )
...
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-03-28 17:24:44 -04:00
Sebastian Rittau
4757bf6d81
[requests] Remove Session.redirect_cache ( #13723 )
2025-03-27 16:20:01 -04:00
Sebastian Rittau
3890289a21
Sample text for closing future stdlib PRs ( #13697 )
2025-03-27 17:46:51 +01:00
b68907b104
[setuptools] Update to 77.0.2 ( #13685 )
...
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Avasam <samuel.06@hotmail.com >
2025-03-27 12:13:13 -04:00
Sebastian Rittau
798c660ab7
Remove humanfriendly stubs ( #13699 )
2025-03-23 23:41:53 +01:00
Sebastian Rittau
494a5d1b98
Update croniter repository URL ( #13698 )
...
Cf. #13260 pallets-eco/croniter#144
2025-03-21 18:34:11 +00:00
Sebastian Rittau and Jelle Zijlstra
5bb9409e22
Clarify that direct pushes are not allowed
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2025-03-21 16:26:46 +01:00
Sebastian Rittau
10913cff2c
Move maintainer guidelines to MAINTAINERS document
...
The guidelines are unchanged, apart from linking back to the
CONTRIBUTING document and introducting section headers.
This serves multiple purposes:
* The maintainer guidelines are easier to find for maintainers.
* The CONTRIBUTING document needs fewer changes, meaning fewer
"guideline changed" warnings for contributors.
* The – already very long – CONTRIBUTING document is shorter,
and doesn't contain information irrelevant for regular contributors.
2025-03-21 16:26:46 +01:00
Sebastian Rittau
704cfb477e
Move imports into version_info branch ( #13684 )
2025-03-20 14:09:08 +01:00
Sebastian Rittau
38aa66a3b9
[gdb] Remove unused import ( #13682 )
...
Unblocks #13680
2025-03-20 12:28:49 +00:00
Sebastian Rittau
e18b99ca01
[icalendar] Update to 6.1.2 ( #13672 )
...
Finish icalendar.prop annotations
2025-03-20 01:36:26 -07:00
Sebastian Rittau
b943f311ac
logging.config: Add @type_check_only markers ( #13674 )
2025-03-19 16:23:24 +01:00
Sebastian Rittau
5a8f8aa052
Update typing_extensions to 4.13.0rc1 ( #13671 )
...
Also sort __all__ to match the implementation
2025-03-19 13:56:18 +01:00
Sebastian Rittau
dbe6cb5cfb
Mark humanfriendly as no longer updated ( #13665 )
...
Cf. #13662
2025-03-18 13:51:32 +01:00
Sebastian Rittau
414e6d2150
[CI] Run stubtest with Python 3.13 ( #13638 )
2025-03-18 13:36:15 +01:00
Sebastian Rittau
882e8fd2b3
[stubsabot] Extend warning text when stubtest is disabled ( #13664 )
2025-03-18 13:35:25 +01:00
Sebastian Rittau
e571017a6f
[cffi] Fix a few argument types for C code ( #13661 )
...
* CLibrary.close_lib() doesn't take any arguments.
* FFI.typeof() only takes positional arguments.
2025-03-18 12:53:31 +01:00
Sebastian Rittau
ec5246b359
[WebOb] Add cgi_FieldStorage.make_file on Python 3.13+ ( #13654 )
2025-03-18 12:05:59 +01:00
Sebastian Rittau
e90c6f11dc
[cffi] Bump to 1.17.* ( #13653 )
2025-03-18 12:05:23 +01:00
Sebastian Rittau
b93eae52af
Fix various argument of extension modules ( #13651 )
...
* Mark various positional-only arguments: These are all positional-only
arguments in C code using the `METH_O` flag.
* Remove various `*args, **kwargs` arguments that are using the
`METH_NOARGS` flag in C.
2025-03-18 02:22:34 +01:00
Sebastian Rittau
089bbcb39e
Make BaseTzInfo inherited methods pos-only ( #13650 )
...
These methods are already positional-only in `datetime.tzinfo`. Leaving
them pos-or-kw fail stubtest when running with Python 3.13.
2025-03-17 17:16:36 -07:00