8000 bpo-44524: Don't modify MRO when inheriting from typing.Annotated by Fidget-Spinner · Pull Request #27841 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-44524: Don't modify MRO when inheriting from typing.Annotated #27841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 25, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8000
Prev Previous commit
Next Next commit
fix tests, remove news
  • Loading branch information
Fidget-Spinner committed Aug 21, 2021
commit 1cebc041251cf9dbd085d9cde5689152c5e022e1
4 changes: 2 additions & 2 deletions Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4913,8 +4913,8 @@ def test_special_attrs(self):
typing.TypeVar: 'TypeVar',
typing.Union: 'Union',
# Subscribed special forms
# Fixme: make Annotated work without messing up its MRO
# typing.Annotated[Any, "Annotation"]: 'Annotated',
# Annotated is special - it returns the contained type
typing.Annotated[Any, "Annotation"]: 'Any',
typing.ClassVar[Any]: 'ClassVar',
typing.Concatenate[Any, SpecialAttrsP]: 'Concatenate',
typing.Final[Any]: 'Final',
Expand Down

This file was deleted.

0