Brian Schubert
c7b8fe9f06
Fix stdlib stubtest for latest Python patch releases ( #13812 )
2025-04-10 14:19:45 -07:00
Joren Hammudoglu
6b8aebcc9c
_type_ class attributes in ctypes, and fix ctypes.wintypes.BYTE (#13777 )
2025-04-07 14:16:11 +02:00
Joren Hammudoglu
2ae5ed8b62
Make the type-parameter of ctypes.py_object optional ( #13760 )
2025-04-07 14:03:17 +02:00
Alex Waygood
30c4307ce6
remove outdated comment from types.pyi ( #13788 )
2025-04-03 12:12:12 +01:00
Alex Waygood
d92a6449c2
Remove more Python 3.8 cruft ( #13787 )
2025-04-03 11:56:38 +01:00
Sebastian Rittau
30b16c168d
Drop Python 3.8 branches ( #13776 )
2025-04-03 10:35:36 +02:00
Avasam
1e43190554
Exact return types instead of shutil._PathReturn ( #13767 )
2025-04-03 10:22:53 +02:00
Avasam
4b253d2932
Enable Ruff flake8-todos (TD) ( #13748 )
2025-04-03 07:43:54 +02:00
Peter Bierma
23488363ce
Add stub for sys._is_interned ( #13778 )
2025-04-02 14:15:39 -07:00
A5rocks
54e1817439
Make code.InteractiveInterpreter#locals a dict not a mapping ( #13775 )
2025-04-02 17:31:41 +02:00
Brian Schubert
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
ad8ecaf217
property.__get__: overload to model class-access behavior (#13769 )
2025-04-02 15:09:56 +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
Joren Hammudoglu
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
f6503fd9ab
Drop Python 3.8 support in typing[_extensions] and types ( #13763 )
2025-04-02 08:56:56 +02:00
Joren Hammudoglu
0a3d8d2696
Drop Python 3.8 support in os and sys ( #13764 )
2025-04-02 08:50:06 +02:00
Joren Hammudoglu
b266f3e746
Drop Python 3.8 support in ast ( #13766 )
2025-04-02 08:47:13 +02:00
Avasam
aaf1e0313c
Enable Ruff flake8-pie (PIE) ( #13747 )
2025-04-02 08:43:25 +02:00
Avasam
19cea106f0
Bump ruff to 0.11.2 ( #13757 )
2025-04-01 17:31:38 +01:00
Neil Mitchell
7335dfa7f9
Make importlib context manager not swallow exceptions ( #13733 )
2025-03-28 15:16:17 +01:00
Jia Chen
693b66ae9a
Make Any a proper class instead of an alias to object() ( #13520 )
2025-03-21 13:46:23 +01:00
Sam Bull
b4e49dd521
[asyncio] Allow any memoryview in write() and writelines() ( #13519 )
2025-03-20 17:49:10 +01:00
Sebastian Rittau
704cfb477e
Move imports into version_info branch ( #13684 )
2025-03-20 14:09:08 +01:00
Joren Hammudoglu
c8bdfcb49d
covariant warnings.catch_warnings type-parameter with default ( #13675 )
2025-03-20 13:26:43 +01: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
Semyon Moroz
f7799bb683
Use Generator for heapq.merge ( #13663 )
2025-03-18 13:05:59 +01:00
Semyon Moroz
b733e57571
Deprecate CGIHTTPRequestHandler ( #13658 )
2025-03-18 11:35:20 +01:00
Sebastian Rittau
52202f42a6
Add TypedDict.__{readonly,mutable}_keys__ ( #13646 )
2025-03-17 19:30:30 +01:00
Brian Schubert
205e993b52
Fix parameter types for pkgutil functions accepting pathlike arguments ( #13642 )
2025-03-17 18:02:07 +01:00
Joren Hammudoglu
8064d995e7
Some minor statistics.NormalDist adjustments ( #13626 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2025-03-15 19:07:47 +00:00
Joren Hammudoglu
5ba2e4989e
Add types.UnionType.__parameters__ ( #13628 )
...
annotate the `types.UnionType.__parameters__` property
2025-03-15 17:51:36 +00:00
Joren Hammudoglu
28106bcb73
Annotate pathlib.Path.{owner,group,is_mount} on windows ( #13613 )
2025-03-11 18:45:40 +01:00
Dan Pascu
d04d532337
Fix return type for GenericAlias.__origin__ for type aliases parameterised with a type ( #13619 )
2025-03-11 17:11:19 +01:00
Max Muoto
2e76963775
Fix asyncio executor types ( #13616 )
...
Update type annotations for `run_in_executor` and `set_default_executor` in asyncio event loop interfaces to use more specific executor types from `concurrent.futures`
2025-03-11 11:45:28 +01:00
Avasam
1f2ceccfae
distutils: Allow overriding Command and Distribution boolean attributes with actual bool in subclasses ( #13615 )
2025-03-11 11:18:03 +01:00
Joren Hammudoglu
ab46a26de8
Annotate unittest.TestCase.__init_subclass__ ( #13602 )
2025-03-09 13:47:43 +01:00
Stephen Morton
846d167f51
Fix default of dict.get ( #13222 )
2025-03-09 13:44:27 +01:00
Stephen Morton
56fa438a27
Decouple types.DynamicClassAttribute from property ( #13276 )
2025-03-07 19:08:27 +01:00
Kanishk Pachauri
7cb3eef00c
Update _socket.pyi to include tuple[int, bytes] address format ( #13596 )
2025-03-07 19:05:24 +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
Avasam
58a4c08ab0
shutil.which cannot return PathLike, and fails with cmd: PathLike on Windows Python < 3.12 (#13580 )
2025-03-05 08:54:48 +01:00
Philipp A.
714c99bbdb
Fix singledispatch register signature ( #13578 )
2025-03-04 14:52:07 +01:00
Avasam
6f98c59f93
Enable Ruff PLR (Pylint Refactor) ( #13307 )
2025-03-03 18:03:34 +01:00
Sebastian Rittau
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
cake-monotone
9f11db4296
Improving type support for math.prod ( #13572 )
2025-03-03 16:41:34 +01:00
Stephen Morton
175e700656
Push items down from socketserver.BaseServer to TCPServer ( #13082 )
...
Cf. https://github.com/python/cpython/issues/127209
2025-03-03 16:38:43 +01:00
Avasam
1e71351016
Allow any sliceable sequence as getopt args ( #13116 )
2025-03-03 15:52:57 +01:00