Commit Graph
100 Commits
Author SHA1 Message Date
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 Rittauandpre-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 RittauandJelle 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
Sebastian Rittau f0d9b4e056 [passlib] Fix for Python 3.13 (#13649)
`passlib.hosts.host_context` is not present on Python 3.13.
2025-03-17 17:14:52 -07:00
Sebastian Rittau d6373d9d4e [greenlet] Fix for Python 3.13 (#13648)
`get_tstate_trash_delete_nesting()` is not available
on Python 3.13.
2025-03-17 17:14:45 -07:00
Sebastian Rittau e3c9eb8404 [cffi] Update repository URL (#13652) 2025-03-17 23:52:02 +01:00
Sebastian Rittau 90cef37593 [pynput] Update to 1.8.1 (#13647) 2025-03-17 20:10:21 +01:00
Sebastian Rittau 52202f42a6 Add TypedDict.__{readonly,mutable}_keys__ (#13646) 2025-03-17 19:30:30 +01:00
Sebastian Rittau 5cd606b5ed [fpdf2] Make fpdf.fonts.Glyph a dataclass (#13645) 2025-03-17 19:27:17 +01:00
Sebastian Rittau 030e7ada23 [CI] Use Python 3.13 where possible (#13637) 2025-03-17 16:20:14 +01:00
Sebastian RittauandAlex Waygood 70ecc34c05 [CI] Shorten job names (#13635)
When looking at GitHub's action runs, the individual jobs are listed in
the left sidebar, but since the job names are fairly long, they get cut
off, leading to a lot of guessing when finding the correct job. Shorter
job names should fix this.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-03-17 15:06:16 +01:00
Sebastian Rittau da50b5c411 Move error handling to main function (#13630)
* This makes is easier to call `run_stubtest()` manually, for
   example when testing the script - no need to construct
   an `ArgumentParser` instance.
* This concentrates argument error handling in the
  `main()` function and prevents an unexpected process exit
  when calling `run_stubtest()`.
2025-03-16 20:40:38 +01:00
Sebastian Rittau acac58ad4a [CI] Quieten apt-get (#13629)
Don't print progress when installing packages via apt-get. This
prevent spurious output in CI logs.
2025-03-16 08:06:43 -07:00
Sebastian Rittau 02aee8dc68 [google-cloud-ndb] Remove unncessary stubtest requirements (#13631) 2025-03-16 15:33:55 +01:00
Sebastian Rittau b4c656a6f7 Remove LD_LIBRARY_PATH before running gdb (#13594)
Suggestion by @peace-maker
2025-03-08 00:09:47 +01:00
Sebastian Rittau 90d89f8983 Remove redundant version_info checks (#13588)
`zipfile._path` was split into a separate module in Python 3.12.
Originally, we just copied the definition for `CompleteDirs` and `Path`
from `zipfile.pyi` to `zipfile/_path/__init__.pyi` and left the now
defunct version_info branches. This removes the unnecessary branches
from the respective stub files.
2025-03-06 17:02:48 +01:00
Sebastian Rittau 5f1fd23bd2 Rework tarfile.open/TarFile.open (#13177)
* Copy overloads of `open()` to `TarFile.open()`.
* Replace remaining instances of `IO` with `_Fileobj`.
* Replace `open()` with alias to `TarFile.open()` to match implementation.
2025-03-06 13:54:35 +01:00
Sebastian Rittau ba85e0c282 Fix tarfile.open overloads (#13441)
* Allow `compresslevel` argument for modes `w|gz` and `w|bz2`.
* Remove `preset` argument from modes where it's not allowed.

Closes: #13440
2025-03-06 10:39:56 +01:00
Sebastian RittauandAvasam 3e83e42a0f Update pyright to v1.1.395; disable a pow() check (#13564)
pyright and mypy disagree about the exact type due to differing
overloads handling.

---------

Co-authored-by: Avasam <samuel.06@hotmail.com>
2025-03-03 11:49:41 -05:00
Sebastian Rittau 96c3fe712a Remove SupportsGetItem.__contains__ (#13541) 2025-03-03 15:44:26 +01:00
Sebastian Rittau 0b13c1deb6 [setuptools] Update to 75.8.2 (#13563) 2025-02-28 14:42:05 -08:00
Sebastian Rittau bc4473db04 Fix conflicting imports (#13561) 2025-02-28 19:20:35 +01:00
Sebastian Rittau f1b121cf29 [configparser] Fix missing fallback argument in SectionProxy.get (#13559)
Closes: #13556
2025-02-28 03:33:10 -08:00
Sebastian Rittau 915a348bfa Third party stubtest: Print time per distribution (#13547) 2025-02-26 21:44:10 +01:00
Sebastian Rittau 9da1df60be Update an itertool recipe from Python docs (#13543) 2025-02-26 14:04:04 +01: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
Sebastian Rittau 619e8f3680 [fpdf2] Update to 2.8.2 (#13264) 2024-12-22 16:49:46 -08:00
Sebastian Rittau c2a33373cf [vobject] Replace typing.Any with _typeshed.Incomplete (#13265) 2024-12-18 18:59:50 +01:00
Sebastian Rittau 9351a842a3 [vobject] Update to 0.9.9 (#13263)
Update repository URL
2024-12-18 18:45:37 +01:00
Sebastian Rittau 9b500ad3ce [croniter] Update to 5.0.1 (#12926) 2024-12-03 20:06:28 -08:00
Sebastian Rittau 7fbb5fe32b Improve gzip.open() annotations (#13176)
* Return concrete io.TextIOWrapper instead of typing.TextIO.
* Allow file objects when opening in text mode. Closes: #13175
2024-12-03 17:33:47 -08:00
Sebastian Rittau 0a2da01946 Remove redis (#13157)
Closes: #10592
2024-11-30 23:52:56 +01:00
Sebastian Rittau 3f9234fb79 [icalendar] Update to 6.1.* (#13109) 2024-11-27 17:01:20 +01:00
Sebastian Rittau e1c74f08f1 [bleach] Update to 6.2.* (#12927) 2024-11-22 11:30:49 -05:00
Sebastian Rittau e718a7363f [Deprecated] Update to 1.2.15 (#13020) 2024-11-16 16:30:53 +01:00
Sebastian Rittau 0d4a94803a Remove docopt (#12975) 2024-11-07 19:51:15 +01:00
Sebastian Rittau 8dd43718bc Update pyRFC3339 to 2.0.1 (#12960) 2024-11-06 06:08:33 -08:00
Sebastian Rittau 7838ab5f98 [waitress] Update to 3.0.1 (#12917) 2024-10-29 10:15:01 +00:00
Sebastian Rittau ec1c327679 [croniter] Update to 3.0.4 (#12909) 2024-10-26 23:10:35 +02:00
Sebastian Rittau 701cd065b8 [CI] Switch to macos-latest (#12897)
macos-12 is deprecated and will be removed:
https://github.com/actions/runner-images/issues/10721
2024-10-24 11:00:11 -07:00
Sebastian Rittau b0ac25e7bd Use compatible version marker for icalendar (#12831) 2024-10-21 04:36:05 -07:00
Sebastian Rittau c020ccc821 Print gdb version to ease debugging (#12836) 2024-10-21 04:35:55 -07:00
Sebastian Rittau a6fb689ff1 Update third-party removal policy (#12858) 2024-10-21 13:10:27 +02:00
Sebastian Rittau b0d57cc03c Remove boto stubs (#12856)
Closes: #12848
2024-10-19 18:07:28 +02:00
Sebastian Rittau a22e35814e [boto] Set the no_longer_updated flag (#12860) 2024-10-19 17:56:05 +02:00
Sebastian Rittau d1c1675b20 Remove playsound stubs (#12857)
Closes: #12856
2024-10-19 17:52:54 +02:00
Sebastian Rittau ebdd2c528d Update mypy to 1.12.0 (#12859) 2024-10-19 16:45:38 +01:00
Sebastian Rittau 890a38f424 [playsound] Set the no_longer_updated flag (#12861) 2024-10-19 17:39:01 +02:00
Sebastian Rittau 7fb84668fc [psycopg2] Bump to 2.9.10 (#12835)
Mark all error codes as `Final`
2024-10-18 10:34:55 -07:00
Sebastian Rittau c6affbb804 [CI] Pin Ubuntu in third party stubtest (#12846)
This fixes a problem with gdb changing between the Ubuntu versions.
2024-10-18 12:09:05 +02:00