Replies: 1 comment 3 replies
-
That seems like a bug in mypy, I would type ignore. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Given this code:
self.current_element
is always of typeElement[Any]
.The above code causes mypy to complain:
How do I add annotations such that mypy can understand what's going on here?
Beta Was this translation helpful? Give feedback.
All reactions