Skip to content

Pyright/Pylance fails to infer type of generic classmethod T as Unknown by design #40

@sunfkny

Description

@sunfkny

Pyright unable to infer the type of Generic classmethod microsoft/pyright#7721

This break these classmethod Option.Some, Option.maybe, Result.Ok, Result.Err but shortcut function Some, maybe, Ok, Err still works, documentation should mention this

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