Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | gh-101562: typing: add tests for inheritance with NotRequired & Required in ↵ | Eclips4 | 2023-02-06 |
| | | | | parent fields (#101563) | ||
* | gh-101015: Fix `typing.get_type_hints` with unpacked `*tuple` (PEP 646) ↵ | Nikita Sobolev | 2023-01-23 |
| | | | | (#101031) | ||
* | gh-99957: Add `frozen_default` parameter on `dataclass_transform` (#99958) | Erik De Bonte | 2022-12-05 |
| | |||
* | gh-99344, gh-99379, gh-99382: Fix issues in substitution of ParamSpec and ↵ | Serhiy Storchaka | 2022-11-29 |
| | | | | | | | | | | | TypeVarTuple (GH-99412) * Fix substitution of TypeVarTuple and ParamSpec together in user generics. * Fix substitution of ParamSpec followed by TypeVarTuple in generic aliases. * Check the number of arguments in substitution in user generics containing a TypeVarTuple and one or more TypeVar. | ||
* | `test_typing`: use all pickle protocols (#99154) | Nikita Sobolev | 2022-11-06 |
| | |||
* | gh-98852: Fix subscription of type aliases (GH-98920) | Serhiy Storchaka | 2022-11-01 |
| | | | | | Fix subscription of type aliases containing bare generic types or types like TypeVar: for example tuple[A, T][int] and tuple[TypeVar, T][int], where A is a generic type, and T is a type variable. | ||
* | gh-98713: Use `@cpython_only` for a test that fails on PyPy (#98714) | Nikita Sobolev | 2022-10-26 |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||
* | GH-87390: Add remaining tests for PEP 646 (#98267) | Matthew Rahtz | 2022-10-25 |
| | | | Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> | ||
* | Use more precise exception types in `assertRaises` in typing tests (#98650) | Nikita Sobolev | 2022-10-25 |
| | |||
* | typing tests: `_overload_dummy` raises `NotImplementedError`, not ↵ | Nikita Sobolev | 2022-10-19 |
| | | | | `RuntimeError` (#98351) | ||
* | gh-96784: Cover more typing special forms in `get_args()` (#96791) | Nikita Sobolev | 2022-09-13 |
| | |||
* | gh-96769: Cover more typing special forms to be unsubclassable (#96772) | Nikita Sobolev | 2022-09-13 |
| | |||
* | gh-96478: Fix new test when run in refleak mode (#96615) | Jelle Zijlstra | 2022-09-06 |
| | | | | ./python.exe -m test -R : test.test_typing would fail, apparently because the dictionary used in the @patch decorator was modified. | ||
* | gh-96478: Test `@overload` on C functions (#96479) | Nikita Sobolev | 2022-09-05 |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||
* | GH-96079 Fix missing field name for _AnnotatedAlias (#96080) | Anh71me | 2022-08-31 |
| | |||
* | gh-95987: Fix `repr` of `Any` type subclasses (#96412) | Nikita Sobolev | 2022-08-30 |
| | |||
* | gh-96385: Correctly raise error on `[*T, *V]` substitution (GH-96386) | Nikita Sobolev | 2022-08-30 |
| | |||
* | gh-96357: Improve `typing.get_overloads` coverage (#96358) | Nikita Sobolev | 2022-08-28 |
| | |||
* | gh-94607: Fix subclassing generics (GH-94610) | Ken Jin | 2022-07-09 |
| | | | Co-authored-by: Serhiy Storchaka <3659035+serhiy-storchaka@users.noreply.github.com> | ||
* | gh-94245: Test pickling and copying of typing.Tuple[()] (GH-94259) | Serhiy Storchaka | 2022-06-25 |
| | |||
* | bpo-46642: Explicitly disallow subclassing of instaces of TypeVar, ↵ | Gregory Beauregard | 2022-06-25 |
| | | | | | | | | ParamSpec, etc (GH-31148) The existing test covering this case passed only incidentally. We explicitly disallow doing this and add a proper error message. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | ||
* | gh-91162: Support splitting of unpacked arbitrary-length tuple over TypeVar ↵ | Serhiy Storchaka | 2022-06-12 |
| | | | | | | | | | and TypeVarTuple parameters (alt) (GH-93412) For example: A[T, *Ts][*tuple[int, ...]] -> A[int, *tuple[int, ...]] A[*Ts, T][*tuple[int, ...]] -> A[*tuple[int, ...], int] | ||
* | gh-93345: Fix a crash in substitution of nested TypeVar after TypeVarTuple ↵ | Serhiy Storchaka | 2022-05-31 |
| | | | | | | (GH-93346) For example: tuple[*Ts, list[T]][int, str, bool] | ||
* | gh-91162: Fix substitution of unpacked tuples in generic aliases (GH-92335) | Serhiy Storchaka | 2022-05-08 |
| | |||
* | gh-92261: Disallow iteration of Union (and other special forms) (GH-92262) | Matthew Rahtz | 2022-05-08 |
| | |||
* | gh-92107: Add tests that subscription works on arbitrary named tuple types ↵ | Serhiy Storchaka | 2022-05-04 |
| | | | | (GH-92304) | ||
* | bpo-44863: Allow generic typing.TypedDict (#27663) | Samodya Abey | 2022-05-03 |
| | | | | | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | ||
* | gh-91621: Fix typing.get_type_hints for collections.abc.Callable (#91656) | Shantanu | 2022-05-02 |
| | | | | | | This mirrors logic in typing.get_args. The trickiness comes from how we flatten args in collections.abc.Callable, see https://bugs.python.org/issue42195 | ||
* | bpo-43923: Add support for generic typing.NamedTuple (#92027) | Serhiy Storchaka | 2022-05-02 |
| | |||
* | gh-92106: Add test that subscription works on arbitrary TypedDicts (#92176) | Serhiy Storchaka | 2022-05-02 |
| | |||
* | bpo-43224: Implement substitution of unpacked TypeVarTuple in C (GH-31828) | Serhiy Storchaka | 2022-04-30 |
| | | | | Co-authored-by: Matthew Rahtz <mrahtz@gmail.com> | ||
* | gh-92064: Fix global variable name collision in test_typing (#92067) | Dennis Sweeney | 2022-04-29 |
| | | | Fixes #92064 | ||
* | bpo-44791: Accept ellipsis as the last argument of typing.Concatenate (#30969) | Serhiy Storchaka | 2022-04-29 |
| | |||
* | gh-87390: Add tests demonstrating current type variable substitution ↵ | Matthew Rahtz | 2022-04-29 |
| | | | | behaviour (#32341) | ||
* | gh-91860: Add typing.dataclass_transform (PEP 681) (#91861) | Jelle Zijlstra | 2022-04-25 |
| | | | | | | | Copied from typing-extensions (python/typing#1054, python/typing#1120). Documentation is intentionally omitted, so we can focus on getting the runtime part in before the feature freeze. | ||
* | gh-90633: Improve error and docs for typing.assert_never (#91720) | Jelle Zijlstra | 2022-04-25 |
| | | | | | Closes #90633 Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||
* | bpo-43224: Implement pickling of TypeVarTuples (#32119) | Matthew Rahtz | 2022-04-21 |
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||
* | gh-89263: Add typing.get_overloads (GH-31716) | Jelle Zijlstra | 2022-04-16 |
| | | | | | | | Based on suggestions by Guido van Rossum, Spencer Brown, and Alex Waygood. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> Co-authored-by: Ken Jin <kenjin4096@gmail.com> | ||
* | bpo-43224: Add tests for TypeVarTuple substitution in Annotated (GH-31846) | Matthew Rahtz | 2022-04-15 |
| | |||
* | bpo-43224: Forbid TypeVar substitution with Unpack (GH-32031) | Serhiy Storchaka | 2022-04-12 |
| | |||
* | gh-91243: Add typing.Required and NotRequired (PEP 655) (GH-32419) | Jelle Zijlstra | 2022-04-12 |
| | | | | | | | | | | | I talked to @davidfstr and I offered to implement the runtime part of PEP 655 to make sure we can get it in before the feature freeze. We're going to defer the documentation to a separate PR, because it can wait until after the feature freeze. The runtime implementation conveniently already exists in typing-extensions, so I largely copied that. Co-authored-by: David Foster <david@dafoster.net> | ||
* | bpo-44807: Allow Protocol classes to define __init__ (GH-31628) | Adrian Garcia Badaracco | 2022-04-11 |
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||
* | bpo-47088: Add typing.LiteralString (PEP 675) (GH-32064) | Jelle Zijlstra | 2022-04-05 |
| | | | Co-authored-by: Nick Pope <nick@nickpope.me.uk> | ||
* | bpo-46998: Allow subclassing Any at runtime (GH-31841) | Shantanu | 2022-04-04 |
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||
* | bpo-43224: Add TypeVarTuple.__name__ (GH-31954) | Jelle Zijlstra | 2022-03-18 |
| | | | | I noticed that TypeVar and ParamSpec put their name in a __name__ attribute, but TypeVarTuple doesn't. Let's be consistent. | ||
* | bpo-46981: Remove typing._TypingEmpty (GH-31836) | Serhiy Storchaka | 2022-03-17 |
| | | | | | * get_args(Tuple[()]) now returns () instead of ((),). * Tuple[Unpack[Ts]][()] now returns the result equal to Tuple[()]. | ||
* | bpo-46480: add typing.assert_type (GH-30843) | Jelle Zijlstra | 2022-03-16 |
| | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: David Foster <david@dafoster.net> | ||
* | bpo-46644: Fix test_typing test broken by GH-31151 due to a merge race ↵ | Jelle Zijlstra | 2022-03-11 |
| | | | | (GH-31833) | ||
* | bpo-46644: Remove callable() requirement from typing._type_check (GH-31151) | Gregory Beauregard | 2022-03-11 |
| | | | We also remove all the tests that check for integer literals. | ||
* | bpo-43224: Implement substitution of unpacked TypeVarTuple (GH-31800) | Serhiy Storchaka | 2022-03-11 |
| |