Type inference does not work for inherited Literal properties #6824
Labels
false-positive
mypy gave an error on correct code
priority-1-normal
topic-literal-types
topic-usability
I expected mypy to be able to infer that the literal in the subtype is a subtype of the property in its ancestor. Should this be allowed? I didn't find anything in the PEP defining the behavior here, but it seems like a really useful thing to be able to do.
setup.cfg
:The text was updated successfully, but these errors were encountered: