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

Frozenset seems to not be equal to set? #35

Closed
mitar opened this issue Apr 11, 2018 · 0 comments
Closed

Frozenset seems to not be equal to set? #35

mitar opened this issue Apr 11, 2018 · 0 comments

Comments

@mitar
Copy link
Collaborator

mitar commented Apr 11, 2018

>>> import typing
>>> from pytypes import type_util
>>> type_util._isinstance(frozenset({1, 2, 'a', None, 'b'}), typing.AbstractSet[typing.Union[str, int, None]])
False
>>> type_util._isinstance({1, 2, 'a', None, 'b'}, typing.AbstractSet[typing.Union[str, int, type(None)]])
True
>>> issubclass(frozenset, typing.AbstractSet)
True
mitar added a commit to mitar/pytypes that referenced this issue Apr 13, 2018
@mitar mitar mentioned this issue Apr 13, 2018
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

1 participant