Join of two type concrete type objects may be considered abstract #3115
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
priority-1-normal
topic-join-v-union
Using join vs. using unions
Mypy complains about the following code even though it looks fine:
It looks like the join of two callables representing type objects should perhaps be
Type[x]
instead of another callable, since mypy basically assumes that a callable represents a specific type object, not something that can also be any subclass. The same issue probably applies to meets as well.The text was updated successfully, but these errors were encountered: