Skip to content

Quoted type name not actually valid as base class #1685

Open
@rwbarton

Description

@rwbarton
Contributor

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.

Activity

gvanrossum

gvanrossum commented on Jun 9, 2016

@gvanrossum
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @rwbarton@gvanrossum@ilevkivskyi@hauntsaninja

        Issue actions

          Quoted type name not actually valid as base class · Issue #1685 · python/mypy