Skip to content

tuple of Any(s) creates a single length tuple type hint tuple[Any] #80

@kylejcaron

Description

@kylejcaron

I recently found that the docstring description "tuple of Any(s)" led to the creation of a tuple[Any] type hint in the stub file, however I was expecting the type hint to be an arbitrary length tuple, tuple[Any, ...]

I resolved this for now using the description "tuple of (Any, ...)", but given this description for containers I'd expect "tuple of Any(s)" to also work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions