Skip to content

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

Closed
@pkch

Description

@pkch

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions