-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugmypy got something wrongmypy got something wrongfalse-positivemypy gave an error on correct codemypy gave an error on correct codepriority-0-hightopic-usability
Description
This is probably more of a question than a real issue.
The following code is considered erroneous (tested in Python 3):
class BaseA:
class Sub:
pass
class BaseB:
class Sub:
pass
class Test(BaseA, BaseB):
pass
mypy responds with:
…: error: Cannot determine type of 'Sub' in base class 'BaseA'
…: error: Cannot determine type of 'Sub' in base class 'BaseB'
But it doesn't complain if I don't use multiple inheritance:
class BaseA:
class Sub:
pass
class BaseB:
class Sub:
pass
class Test(BaseA):
pass
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongfalse-positivemypy gave an error on correct codemypy gave an error on correct codepriority-0-hightopic-usability