Skip to content

infer types of dunders #288

@KotlinIsland

Description

@KotlinIsland
class A:
    def __getattr__(self, attr):
         reveal_type(attr)  # str

Metadata

Metadata

Assignees

No one assigned

    Labels

    basednon-standard/breaking change (eg. would cause issues in 3rd party code)type checking / lintingissues relating to existing diagnostic rules or proposals for new diagnostic rules

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions