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

Isinstance / issubclass stubs don't allow nested tuples #997

Closed
pkch opened this issue Mar 14, 2017 · 0 comments
Closed

Isinstance / issubclass stubs don't allow nested tuples #997

pkch opened this issue Mar 14, 2017 · 0 comments

Comments

@pkch
Copy link
Contributor

pkch commented Mar 14, 2017

isinstance(x, (str, (list, set))) is allowed in python (both 2 and 3) but not in the stubs. Similarly for issubclass, although this feature seems to be documented only in python 2 (but works also in python 3).

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