Skip to content

Cannot access nested class #259

Closed
Closed
@JukkaL

Description

@JukkaL

The type checker complains about the self.B() call in the program below:

class A:
    class B: pass
    def f(self) -> None:
        self.B()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions