[red-knot] understand type[A | B]
where A and B are both classes
#14703
Labels
red-knot
Multi-file analysis & type inference
type[A | B]
where A and B are both classes
#14703
(part of #14172)
type[A | B]
Is equivalent to an enum oftype[A]
|type[B]
.There are not a lot of edge cases looking at the tests here: https://github.com/python/typing/blob/main/conformance/tests/specialtypes_type.py#L50
The text was updated successfully, but these errors were encountered: