-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
Example:
import six
class TestBase(object):
pass
class TestMeta(type):
pass
class Test(six.with_metaclass(TestMeta, TestBase)):
pass
In this case, mypy returns error: Invalid base class
. However, in my larger project it actually caused mypy
to crash while checking a type derived from the Test
analogue. Unfortunately I wasn't able to reproduce this in a small example, but switching to @six.add_metaclass
fixed the problem.
rowillia, lucaswiman, tumb1er, wittekm and muupan