Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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