Skip to content

Union[str, None] should be the same type as str #572

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

Closed
JukkaL opened this issue Feb 3, 2015 · 0 comments
Closed

Union[str, None] should be the same type as str #572

JukkaL opened this issue Feb 3, 2015 · 0 comments
Labels
bug mypy got something wrong

Comments

@JukkaL
Copy link
Collaborator

JukkaL commented Feb 3, 2015

It seems that mypy treats Union[str, None] as a different type from str, even though they should be equivalent (at least until proper type checking of None values has been implemented).

See python/typing#56.

@JukkaL JukkaL added bug mypy got something wrong priority labels Feb 3, 2015
@JukkaL JukkaL closed this as completed in 21ff1a8 Feb 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong
Projects
None yet
Development

No branches or pull requests

1 participant