You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latter issue may be a red herring; it's because if-else expressions aren't balanced, and it looks weird because the dict literals are translated to dict() calls. A similar error appears for a simpler case:
[''] if True else [0] # E: List item 0 has incompatible type "int"
This gives an error:
However this rewrite is fine:
The text was updated successfully, but these errors were encountered: