Skip to content

Commit 7ac5801

Browse files
committed
Override _AnnotatedAlias mro_entries
1 parent 1ad4b9d commit 7ac5801

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/typing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2132,6 +2132,9 @@ def __getattr__(self, attr):
21322132
return 'Annotated'
21332133
return super().__getattr__(attr)
21342134

2135+
def __mro_entries__(self, bases):
2136+
return (self.__origin__,)
2137+
21352138

21362139
class Annotated:
21372140
"""Add context specific metadata to a type.

0 commit comments

Comments
 (0)