Skip to content

can't find nested class #565

@gordianknotC

Description

@gordianknotC
class Root(object):
    class TBase(object): pass
    class TChild(TBase):pass

# line3: Name 'TBase' is not defined

only allowed for

class Root(object):
    class TBase(object): pass
    class TChild(Root.TBase):pass

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