Skip to content
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

Quoted type name not actually valid as base class #1685

Open
rwbarton opened this issue Jun 9, 2016 · 1 comment
Open

Quoted type name not actually valid as base class #1685

rwbarton opened this issue Jun 9, 2016 · 1 comment
Labels
bug mypy got something wrong priority-2-low

Comments

@rwbarton
Copy link
Contributor

rwbarton commented Jun 9, 2016

Mypy accepts the following program, but it's actually an error at runtime (even if the lines are reversed).

class A('B'): pass
class B: pass

Sort of similar to #686, but this bug probably has a simple local fix.

@gvanrossum
Copy link
Member

Sounds like pretty low priority since as soon as you import that module it'll fail loudly.

@ilevkivskyi ilevkivskyi added bug mypy got something wrong priority-2-low labels May 18, 2018
@hauntsaninja hauntsaninja reopened this Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong priority-2-low
Projects
None yet
Development

No branches or pull requests

4 participants