list - Incompatible types in assignment #1205
Unanswered
dineshbvadhia
asked this question in
Q&A
Replies: 3 comments 2 replies
-
Which type checker (and which version) are you using? Your sample type checks without errors in pyright and the latest published version of mypy. |
Beta Was this translation helpful? Give feedback.
0 replies
-
mypy 0.960 |
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes, it was the mypy_cache. Is there a way to flush to cache automatically ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Have a list with different types ie.
which gives the errors:
Cheat Sheet says to use Union when something (mylist) could be one of a few types (list[int], list[str], int). What gives?
Beta Was this translation helpful? Give feedback.
All reactions