Brian Schubert
622df68c1c
Add @type_check_only to stub-only private classes in stdlib ( #14512 )
2025-08-03 10:13:16 +02:00
Sebastian Rittau
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
42b13697ed
[typing-extensions] Update to 4.14.0 final ( #14214 )
2025-06-02 17:12:37 +02:00
Sebastian Rittau
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
Jelle Zijlstra
5ff32f377c
3.14: add annotationlib, update typing and inspect ( #13985 )
2025-05-10 14:25:06 -07:00
Avasam
a045be8ed6
Import names from typing directly rather than importing module ( #13761 )
2025-04-12 19:10:09 +02:00
Alex Waygood
d92a6449c2
Remove more Python 3.8 cruft ( #13787 )
2025-04-03 11:56:38 +01:00
Joren Hammudoglu
f6503fd9ab
Drop Python 3.8 support in typing[_extensions] and types ( #13763 )
2025-04-02 08:56:56 +02:00
Avasam
19cea106f0
Bump ruff to 0.11.2 ( #13757 )
2025-04-01 17:31:38 +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
Avasam
cc206f760d
Drop flake8-noqa and remove workarounds to work with Ruff ( #13571 )
2025-03-03 15:48:59 +01:00
Stephen Morton
abed9a8b55
Protocol inheritance for typing_extensions.SupportsX classes ( #13010 )
...
At runtime, depending on the version of python,
these inherit from typing_extenstions.Protocol
instead of typing.Protocol.
2024-12-27 20:53:44 -08:00
Avasam
773b493b2b
Enable more PYI autofixes ( #13315 )
2024-12-26 21:15:18 -08:00
Rebecca Chen
921c65304e
Annotate TypedDict as _SpecialForm rather than object. ( #12985 )
...
* Annotate TypedDict as _SpecialForm rather than object.
Let's see if this works...
* Get typing_extensions.TypedDict as well, try to fix tests.
* Import typing_extensions.TypedDict, delete _SpecialForm.__getitem__.
* Back out deletion of _SpecialForm.__getitem__.
2024-11-19 22:50:42 -08:00
Stephen Morton
f554f54673
The four protocol-like ABCs outside of collections.abc inherit from ABC directly ( #13005 )
2024-11-16 19:00:39 +01:00
Stephen Morton
7c7629d909
add typing._Final ( #13015 )
...
This is the subset of typing module internal base classes
that are stable over all supported versions of python.
2024-11-16 16:55:38 +01:00
Victorien
db265afec5
Use Mapping for local Python namespace parameters ( #12705 )
2024-09-30 11:26:41 +02:00
Jelle Zijlstra
d482d4e83c
More precise type for TypeAliasType.__getitem__ ( #12354 )
...
At runtime, this always returns a GenericAlias; see typealias_subscript
in Objects/typevarobject.c. See microsoft/pyright#8444 .
2024-07-17 06:37:31 -07:00
Alex Waygood
2985ef414c
typing(_extensions) updates for py313 (#12030 )
2024-05-24 15:16:15 -04:00
Alex Waygood
240114ac1a
More PEP-696 updates to typing(_extensions) stubs ( #11925 )
2024-05-16 22:05:45 -04:00
Alex Waygood
5b0816e784
Fix stdlib stubtest after latest typing-extensions release ( #11923 )
2024-05-16 16:53:19 -04:00
bzoracler
bc4b26fbcb
Allow NewType.__supertype__ to also be a NewType ( #11728 )
2024-04-07 06:15:51 -04:00
DetachHead
325577cb76
Update typing_extensions.deprecated decorator to use LiteralString ( #11700 )
2024-04-01 19:02:41 -07: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
705744af4c
Update for typing_extensions 4.10 ( #11438 )
2024-02-18 00:59:48 -08:00
Sebastian Rittau
23604858a6
Remove Python 3.7 branches ( #11238 )
2024-01-05 11:39:39 +01:00
Alex Waygood
ef346aba0d
Fixes to typing and typing_extensions stubs ( #11086 )
2023-11-29 19:00:58 +00:00
Alex Waygood
8597724ac1
Update typing_extensions stubs for v4.8.0 ( #10726 )
2023-09-18 11:30:28 +01:00
Alex Waygood
df08fcec5f
Improve __(r)or__ signatures for TypedDict classes ( #10565 )
2023-08-12 18:27:35 +01:00
Jelle Zijlstra
f577c4c133
Update typing_extensions for 4.7.* ( #10344 )
2023-07-22 12:51:22 +01:00
Alex Waygood
79e092e133
Add some ruff autofixes to CI ( #10458 )
2023-07-20 14:41:52 +02:00
Jelle Zijlstra
c0a0c34020
Use PEP 688 ( #10225 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-05-27 19:55:30 -07:00
Alex Waygood
bb701b09db
Improve NamedTuple stubs ( #10220 )
2023-05-25 08:37:52 -07:00
Alex Waygood
4190dbca10
Add __orig_bases__ to TypedDict classes ( #10221 )
2023-05-25 08:34:31 -07:00
Jelle Zijlstra
185adf01a9
Clean up stubtest allowlist for typing ( #10205 )
2023-05-24 20:33:46 +01:00
Jelle Zijlstra
e4dcfccbd5
Update typing-extensions; some 3.12 updates ( #10200 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-05-24 11:06:55 -07:00
Alex Waygood
ed915c5cde
Remove unnecessary = ...s; bump pyright test dependency to 1.1.301 ( #9972 )
2023-03-29 13:52:43 +02:00
Sebastian Rittau
027460f11a
Remove unnecessary ellipsis expressions ( #9976 )
...
Ignore flake8 F821 warnings in stub files
2023-03-29 13:28:06 +02:00
Alex Waygood
dd2818a41d
Stdlib: add container default values ( #9909 )
2023-03-21 09:12:34 +01:00
Lucina
81f2f22a03
Add deprecated to typing_extensions ( #9850 )
2023-03-06 11:24:36 -08:00
Stanislav Zmiev
806b13435c
Add get_origin annotations ( #9811 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-02-25 15:59:37 +00:00
Shantanu
da9366d016
Add frozen_default to dataclass_transform ( #9756 )
2023-02-18 15:25:29 -08:00
Alex Waygood
9ed39d8796
Use typing_extensions.Self in the stdlib ( #9694 )
2023-02-09 09:12:13 +00:00
Alex Waygood
53747b264e
Stdlib: add 'obvious' default values ( #9688 )
2023-02-07 13:00:40 +01:00
Alex Waygood
33a62ae42d
Add more defaults to the stdlib ( #9606 )
...
Continuing work towards #8988 .
The first five commits were created using stubdefaulter on various Python versions; the following commits were all created manually by me to fix various problems. The main things this adds that weren't present in #9501 are:
- Defaults in Windows-only modules and Windows-only branches (because I'm running a Windows machine)
- Defaults in non-py311 branches
- Defaults for float parameters
- Defaults for overloads
2023-01-29 01:51:23 +00:00
Jelle Zijlstra
ddfaca3200
stdlib: add argument default values ( #9501 )
2023-01-18 09:37:34 +01:00
Alex Waygood
597e1a0078
Bump various test dependencies ( #9549 )
2023-01-16 11:04:45 -08:00
Marc Mueller
f5369536b9
Update for typing_extensions 4.4.0 ( #8821 )
...
* TypeVarLike default parameters (PEP 696)
* TypeVarLike auto_inference parameter (PEP 695)
* Add typing_extensions.override (PEP 698)
* Add typing_extensions.Any
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-10-06 16:17:57 -07:00