Child of abstract class with Literal field doesn't support Final as field #7751
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
priority-1-normal
topic-literal-types
Possibly bug. Child of abstract class with Literal field doesn't support Final as field type.Reproducible example:
I expect that FinalChild type checking should work similarly to LiteralChild and
something: Final = 'str'
is equal tosomething: Literal['str'] = 'str'
like in TypedDict key checking.I use mypy 0.740, python 3.6
The text was updated successfully, but these errors were encountered: