Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The union type checker guarantees finding the most specific relevant …
…type. The original version checked the found type against the registered types, which wasn't correct because a superclass could be subscripted. For example, if `Sequence[int]` is registered then `[0]` must resolve to `list[int]` not `list`. Literals can also have a Union base. Fixes # 53.
- Loading branch information