Open jolaf opened 5 years ago
Not a solution as this is actually a symptom of pytypes being unaware of ignore
:
You can work around this by setting pytypes.strict_annotation_collision_check = False
.
Ah, sorry; I recognized that this workaround wouldn't do it because pytypes still asserts that a concurrent type string to a type annotation would yield the same type. It would be an easy fix to disable this or to allow an opt-out of this check. However for the reason explained in https://github.com/Stewori/pytypes/issues/78#issuecomment-528878913 I won't fix this before end of next week.
The following code:
fails as follows:
The problem disappears if
# blah
is removed.