Jelle Zijlstra
f32d9f08bd
stdlib: add __slots__ ( #14611 )
2025-08-21 07:24:59 -07:00
Semyon Moroz
5e0d6ee95e
[stdlib] Copy-edit deprecation messages ( #14614 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2025-08-21 12:12:00 +01:00
Semyon Moroz
fb0940e6c1
[stdlib] Deprecate old functions ( #14553 )
...
* [stdlib] Deprecate many functions
* Fix typo
* Imporove message for asyncio/trsock
* Apply suggestions from code review
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
* Add Python before version
* [pre-commit.ci] auto fixes from pre-commit.com hooks
* Wrap comment lines
* fix the rest
---------
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-08-10 22:27:35 +01:00
Brian Schubert
d01dc82bd2
Mark various dunder methods as positional-only in the stdlib ( #14528 )
2025-08-05 17:57:39 -04:00
Alex Waygood
ae1b471e5b
Remove redundant version_info branches ( #14434 )
2025-07-20 23:56:22 +01:00
Neil Mitchell
dbd3ad356e
Make Mapping.get(default) more constrained ( #14360 )
2025-07-02 11:24:32 +01:00
Semyon Moroz
2091fe71b2
Bump importlib to 3.14 ( #14138 )
2025-05-26 07:12:19 -07:00
Semyon Moroz
e3f0de782d
Mark some importlib interfaces as deprecated ( #13866 )
2025-04-24 13:10:38 +02:00
Brian Schubert
c7b8fe9f06
Fix stdlib stubtest for latest Python patch releases ( #13812 )
2025-04-10 14:19:45 -07:00
Sebastian Rittau
30b16c168d
Drop Python 3.8 branches ( #13776 )
2025-04-03 10:35:36 +02:00
Neil Mitchell
7335dfa7f9
Make importlib context manager not swallow exceptions ( #13733 )
2025-03-28 15:16:17 +01:00
Stephen Morton
846d167f51
Fix default of dict.get ( #13222 )
2025-03-09 13:44:27 +01:00
Avasam
6f98c59f93
Enable Ruff PLR (Pylint Refactor) ( #13307 )
2025-03-03 18:03:34 +01:00
Stephen Morton
14605d0c21
Complete importlib.readers ( #13356 )
2025-02-27 14:44:46 +01:00
Alex Waygood
c193cd2a36
Upgrade Black and Ruff ( #13443 )
2025-01-29 22:47:58 +00:00
Stephen Morton
9eb54bc710
add importlib.resources.abc.__all__ ( #13039 )
2024-11-19 05:53:43 +01:00
Stephen Morton
0301510114
Naming and inheritance for importlib ( #12775 )
...
This MR breaks out _frozen_importlib_external (which is the same
thing as importlib._bootstrap_external) and _frozen_importlib
(which is the same thing as importlib._bootstrap).
2024-10-29 11:09:00 +01:00
Max Muoto
85121de466
Update importlib resources for 3.13 ( #12298 )
2024-09-16 20:21:35 +02:00
sobolevn
6f248dfa37
Bump mypy to 1.11.1 ( #12463 )
2024-08-04 23:19:28 -07:00
Max Muoto
08c44b7895
Resolve importlib.metadata 3.13 issues ( #12299 )
2024-07-11 17:04:55 -07:00
Alex Waygood
ac6c61ba04
Stubtest stdlib: unpin 3.11 and 3.12 micro versions ( #12022 )
2024-05-23 13:24:28 -07:00
Anderson Bravalheri
b42e3b2e89
Use protocols instead of importlib.abc.Loader/MetaPathFinder/PathEntryFinder ( #11890 )
2024-05-12 11:58:33 +02:00
Sebastian Rittau
630b49a291
Replace various Incompletes in stdlib ( #11673 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-04-01 15:20:01 +01:00
Sebastian Rittau
027115e624
Remove bare incompletes ( #11670 )
2024-03-30 18:35:57 -07:00
Shantanu
470a13ab09
Use PEP 570 syntax in stdlib ( #11250 )
2024-03-09 14:50:16 -08:00
Jelle Zijlstra
84572bbfe6
importlib.metadata: Use the SimplePath protocol ( #11445 )
...
Closes #9217 . Followup from #11436 .
This mostly makes a simpler set of changes than #9217 ; in particular
it does not make PathDistribution generic. I think this is in line with
how the protocol is supposed to be used, though not always in line with
the runtime type annotations (which don't all make sense).
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2024-02-18 21:05:33 -08:00
Jelle Zijlstra
e5d25a7605
importlib.metadata: Improve and test SimplePath protocol ( #11436 )
...
Co-authored-by: layday <layday@protonmail.com >
2024-02-18 00:36:01 -08:00
Alex Waygood
c49c84f319
A new shade of Black ( #11362 )
2024-02-04 16:38:55 -08:00
Sebastian Rittau
53a8193d64
Update typing_extensions imports in stdlib ( #11244 )
...
Co-authored-by: AlexWaygood <alex.waygood@gmail.com >
2024-01-05 08:15:19 -08:00
Sebastian Rittau
23604858a6
Remove Python 3.7 branches ( #11238 )
2024-01-05 11:39:39 +01:00
Stephen Morton
fd558f8acf
importlib.abc.Loader moved to importlib._abc.Loader in 3.10 ( #11142 )
2023-12-11 14:48:58 +01:00
Stephen Morton
695d67cd7b
Add deprecation classes in importlib.metadata ( #11118 )
2023-12-10 21:06:22 +01:00
Stephen Morton
d373050dbb
Fix importlib.abc.Finder base class, method availability ( #11134 )
2023-12-10 12:01:44 +01:00
Paul Ganssle
336c062489
Remove write modes from importlib.resources.abc.Traversable ( #11124 )
2023-12-09 20:38:40 -08:00
Alex Waygood
9bbfa3362a
Add importlib.machinery.NamespaceLoader ( #11074 )
2023-11-28 20:02:24 +00:00
Alex Waygood
01432805d9
Fix typos in docs and comments ( #11064 )
2023-11-23 14:55:58 +00:00
Alex Waygood
10febc4fe0
stdlib: remove unused type: ignore comments ( #11061 )
2023-11-23 14:00:07 +01:00
Jelle Zijlstra
3229b36644
stdlib: More pos-only parameters to Protocols ( #10987 )
2023-11-06 23:45:12 +01:00
Jelle Zijlstra
5030b7419b
stdlib: Use pos-only parameters for many Protocols ( #10985 )
2023-11-06 18:09:04 +01:00
Alex Waygood
56288ad2d0
Add stubs for importlib.(resources.)simple ( #10931 )
2023-10-28 07:29:57 -07:00
Sebastian Rittau
1c184fea33
Simplify Traversable signature ( #10934 )
...
Simplify Traversable.open() signature. This is necessary so that implentors can
reasonanbly implement this method. For example `zipfile.Path.open()` (which
is considered a `Traversable`) only supports this subset.
Make `Traversable.__truediv__` and `joinpath` arguments pos-only. The
arguments are named differently in both `pathlib.Path` and `zipfile.Path`.
2023-10-27 00:50:11 +02:00
Alex Waygood
908993a807
Add stubs for importlib.(resources.)readers ( #10928 )
...
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2023-10-26 14:18:55 +01:00
Marc Mueller
0bc34fc49c
Fix importlib.util.source_hash return annotation ( #10686 )
2023-09-08 16:07:02 -07:00
Nikita Sobolev
53144ca572
Update importlib.metadata to 3.12 ( #10665 )
2023-09-08 12:42:56 +01:00
Nikita Sobolev
d868dad76b
Update importlib.metadata to 3.12 ( #10654 )
2023-09-03 09:47:19 +01:00
Nikita Sobolev
454438e4db
Update importlib.resources to 3.12 ( #10649 )
2023-09-02 00:03:08 -07:00
Alex Waygood
75da5de5c2
Many importlib removals in py312 ( #10644 )
2023-09-01 13:43:36 +02:00
Shantanu
75c71f324e
importlib.metadata: add PathDistribution._path ( #10528 )
2023-08-01 19:43:51 -07:00
Alex Waygood
03b4bb9cce
Stdlib: add many missing __hash__ and __eq__ methods ( #10464 )
2023-07-17 14:21:02 +02:00
Alex Waygood
dd2818a41d
Stdlib: add container default values ( #9909 )
2023-03-21 09:12:34 +01:00