mypy detects a dict as an object #1896
Unanswered
Sanchoyzer
asked this question in
Q&A
Replies: 1 comment
-
This is related to mypy's longstanding behavior of using the join operator instead of using unions: https://github.com/python/mypy/labels/topic-join-v-union . We'll likely change this eventually in at least some circumstances in mypy (python/mypy#12056), but it's a complex change to make. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've noticed a bit of strange behaviour: mypy detects a dict as an object:
Gist URL: https://gist.github.com/mypy-play/edab7242ef2538c33018bd2352baf38a
Playground URL: https://mypy-play.net/?mypy=latest&python=3.12&gist=edab7242ef2538c33018bd2352baf38a
And it's ok for Pyright
Beta Was this translation helpful? Give feedback.
All reactions