Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive because bool not included during assignment #3175

Closed
daveisfera opened this issue Apr 14, 2017 · 2 comments
Closed

False positive because bool not included during assignment #3175

daveisfera opened this issue Apr 14, 2017 · 2 comments

Comments

@daveisfera
Copy link

daveisfera commented Apr 14, 2017

Here's an example:

from datetime import date, datetime, time
from typing import Dict, List, Union

PrimDict = Dict[str, Union[bool, int, float, str, date, datetime, time]]

data: PrimDict = {}

And here's the output:

test_dict_assign.py:6: error: Incompatible types in assignment (expression has type Dict[str, Union[float, str, date, datetime, time]], variable has type Dict[str, Union[bool, int, float, str, date, datetime, time]])
@JelleZijlstra
Copy link
Member

This sounds very similar to #3085. Does it still happen on master?

@ilevkivskyi
Copy link
Member

I just checked, it is already fixed on master. Feel free to reopen if you have additional problems of this kind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants