Skip to content

can't find nested class #565

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gordianknotC opened this issue Jan 27, 2015 · 2 comments · Fixed by #652
Closed

can't find nested class #565

gordianknotC opened this issue Jan 27, 2015 · 2 comments · Fixed by #652
Labels
bug mypy got something wrong

Comments

@gordianknotC
Copy link

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
@JukkaL JukkaL added the bug mypy got something wrong label Jan 28, 2015
@JukkaL
Copy link
Collaborator

JukkaL commented Jan 28, 2015

Yup, this is a bug. Thanks for reporting this!

@spkersten
Copy link
Contributor

Seems related to #259 and #235.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants