Skip to content

collections.namedtuple returns type[tuple[Any, ...]] #14969

@guoci

Description

@guoci

collections.namedtuple returns type[tuple[Any, ...]] but the returned factory function have some classmethods and methods that will not be reflected in the return type type[tuple[Any, ...]].

Is this problem fixable? Or is this a limitation in Python typing?

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