Skip to content

pyrefly report: ignore trivial return types of special methods and attributes #3100

@jorenham

Description

@jorenham

For example, the return type of __init__ is always None, so annotated or unannotated, it makes no difference for users. And although some type-checkers require it, I've also seen a couple of libraries that never annotate the return type of __init__.

See jorenham/typestats#353 for the full list that typestats uses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions