Max Muoto and GitHub
f90424014b
Add strptime for datetime.time and datetime.date (3.14) ( #13991 )
2025-05-10 21:02:43 +02:00
Max Muoto and GitHub
f67a0df2b8
Update uuid for 3.14, other minor improvements ( #13990 )
2025-05-10 20:51:32 +02:00
Max Muoto and GitHub
ed5525b284
Add invalidate_caches for 3.14 ( #13988 )
2025-05-10 20:22:34 +02:00
Max Muoto and GitHub
b64e741a4a
Add strict argument for map (3.14) ( #13987 )
2025-05-10 20:21:41 +02:00
Avasam and GitHub
f17ee46952
Python 3.14: Remove SupportsTrunc from ConvertibleToInt ( #13986 )
2025-05-10 18:26:23 +01:00
Max Muoto and GitHub
ffc5acbe97
Use literal constant for QuotingType in csv Module ( #13983 )
2025-05-10 19:21:10 +02:00
Semyon Moroz and GitHub
6308997a13
Bump getpass to 3.14 ( #13967 )
2025-05-10 08:17:04 -07:00
Sebastian Rittau and GitHub
2d50d6b316
Support Python 3.14 ( #13957 )
2025-05-10 06:27:40 -07:00
Sebastian Rittau and GitHub
2d46095e3f
Fix errors when type checking stdlib with Python 3.14 ( #13977 )
2025-05-09 21:04:35 +02:00
Hunter Hogan and GitHub
cd98102c6c
remove _Identifier: typing_extensions.TypeAlias = str ( #13954 ) ( #13964 )
2025-05-08 20:40:29 -07:00
Sebastian Rittau and GitHub
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
Hunter Hogan and GitHub
a4d3f6f0de
Re-export ast.Match and ast.TypeAlias from _ast.pyi ( #13926 )
...
This matches what we do for all other AST nodes
2025-05-03 11:05:20 +01:00
Semyon Moroz and GitHub
49afeeb806
Add argument to TarInfo.tarfile setter ( #13904 )
2025-04-29 20:15:16 +02:00
vidhyavijayan3 and GitHub
42347a1ada
Fix base class compatibility for IntFlag in Python 3.11+ to resolve inverted type issue ( #13854 )
2025-04-28 13:44:40 +02:00
Semyon Moroz and GitHub
02a9a0e848
Deprecate TarInfo.tarfile attribute ( #13894 )
2025-04-28 13:41:28 +02:00
Janek Nouvertné and GitHub
8a6bfb0698
Make AsyncExitStack generic on __aexit__ ( #13888 )
2025-04-27 11:23:34 +03:00
Thanos and GitHub
e07284f7d9
Add missing _optimize parameter to importlib.machinery.SourceFileLoader method. ( #13880 )
2025-04-25 12:01:45 +02:00
Semyon Moroz and GitHub
746dbbcc2b
Complete ttkthemes ( #13858 )
2025-04-25 11:26:21 +03:00
Semyon Moroz and GitHub
578cddef1f
Deprecate undocumented pydoc.ispackage ( #13865 )
2025-04-24 13:11:45 +02:00
Semyon Moroz and GitHub
e3f0de782d
Mark some importlib interfaces as deprecated ( #13866 )
2025-04-24 13:10:38 +02:00
Avasam and GitHub
10b4c620d4
Properly mark deprecated methods in threading ( #13861 )
2025-04-22 09:58:53 +02:00
Noelle Leigh and GitHub
1b267b25f2
stdlib/unittest/mock.pyi: Improve _Call types (#13845 )
...
This fixes a number of issues related to `_Call` in `stdlib/unittest/mock.pyi`:
- `_Call.__new__()`, `_Call.__init__()`: The `parent` argument should be
another `_Call` or `None`.
- `_Call.name` doesn't exist.
- `_Call.parent` doesn't exist.
- `_Call.from_kall` doesn't exist.
- [`NonCallableMock.call_args`][0] should be a `_Call` or `None`.
[0]: https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock.call_args
2025-04-18 12:32:16 -07:00
Sebastian Rittau and GitHub
45c0e52b30
Remove obsolete mentions of Python 3.8 ( #13842 )
2025-04-16 11:43:31 +02:00
Sebastian Rittau and GitHub
b67e0da207
Remove obsolete type alias _CursesWindow ( #13841 )
2025-04-16 11:43:06 +02:00
Sebastian Rittau and GitHub
dfea9a6a26
Document visit method return type ( #13831 )
2025-04-15 18:09:33 +02:00
Semyon Moroz and GitHub
f65bdc1acd
Deprecate ssl methods for NPN ( #13823 )
2025-04-14 12:44:17 +02:00
Sebastian Rittau and GitHub
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
Avasam and GitHub
a045be8ed6
Import names from typing directly rather than importing module ( #13761 )
2025-04-12 19:10:09 +02:00
Mikaël Capelle and GitHub
7ffb7e0832
Fix typing of Pickler.persistent_id and Unpickler.persistent_load for Python < 3.13. ( #13818 )
2025-04-12 19:09:31 +02:00
Edward Peek and GitHub
bb1cbfab59
Fix incorrect keyword-only arguments in tarfile.open() ( #13814 )
2025-04-11 11:48:34 +02:00
Brian Schubert and GitHub
c7b8fe9f06
Fix stdlib stubtest for latest Python patch releases ( #13812 )
2025-04-10 14:19:45 -07:00
Joren Hammudoglu and GitHub
6b8aebcc9c
_type_ class attributes in ctypes, and fix ctypes.wintypes.BYTE (#13777 )
2025-04-07 14:16:11 +02:00
Joren Hammudoglu and GitHub
2ae5ed8b62
Make the type-parameter of ctypes.py_object optional ( #13760 )
2025-04-07 14:03:17 +02:00
Alex Waygood and GitHub
30c4307ce6
remove outdated comment from types.pyi ( #13788 )
2025-04-03 12:12:12 +01:00
Alex Waygood and GitHub
d92a6449c2
Remove more Python 3.8 cruft ( #13787 )
2025-04-03 11:56:38 +01:00
Sebastian Rittau and GitHub
30b16c168d
Drop Python 3.8 branches ( #13776 )
2025-04-03 10:35:36 +02:00
Avasam and GitHub
1e43190554
Exact return types instead of shutil._PathReturn ( #13767 )
2025-04-03 10:22:53 +02:00
Avasam and GitHub
4b253d2932
Enable Ruff flake8-todos (TD) ( #13748 )
2025-04-03 07:43:54 +02:00
Peter Bierma and GitHub
23488363ce
Add stub for sys._is_interned ( #13778 )
2025-04-02 14:15:39 -07:00
A5rocks and GitHub
54e1817439
Make code.InteractiveInterpreter#locals a dict not a mapping ( #13775 )
2025-04-02 17:31:41 +02:00
Brian Schubert and GitHub
5d15355717
Remove Python 3.8 exclusive branches from _asyncio, _blake2, _codecs, _contextvars ( #13773 )
...
Remove 3.8 exclusive branches from asyncio, _blake2, codecs, contextvars
2025-04-02 14:13:26 +01:00
David Peter and GitHub
ad8ecaf217
property.__get__: overload to model class-access behavior (#13769 )
2025-04-02 15:09:56 +02:00
Sebastian Rittau and GitHub
27729455a5
Remove dummy threading modules ( #13771 )
...
Removed in Python 3.8, part of #12112
2025-04-02 12:27:24 +02:00
Joren Hammudoglu and GitHub
5513d3f19b
Drop Python 3.8 support in builtins ( #13762 )
...
* remove py38 branches in `builtins`
* combined `builtins.dict` tests with those exclusive to `>=3.9`
2025-04-02 09:01:36 +02:00
Joren Hammudoglu and GitHub
f6503fd9ab
Drop Python 3.8 support in typing[_extensions] and types ( #13763 )
2025-04-02 08:56:56 +02:00
Joren Hammudoglu and GitHub
0a3d8d2696
Drop Python 3.8 support in os and sys ( #13764 )
2025-04-02 08:50:06 +02:00
Joren Hammudoglu and GitHub
b266f3e746
Drop Python 3.8 support in ast ( #13766 )
2025-04-02 08:47:13 +02:00
Avasam and GitHub
aaf1e0313c
Enable Ruff flake8-pie (PIE) ( #13747 )
2025-04-02 08:43:25 +02:00
Avasam and GitHub
19cea106f0
Bump ruff to 0.11.2 ( #13757 )
2025-04-01 17:31:38 +01:00
Neil Mitchell and GitHub
7335dfa7f9
Make importlib context manager not swallow exceptions ( #13733 )
2025-03-28 15:16:17 +01:00