-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
I have a dummy base class:
class BaseModel:
def __init__(self) -> None:
pass
and I have another class extending this dummy base class:
class DendrogramModel(BaseModel):
def __init__(self, test_dtm: Optional[pd.DataFrame] = None,
test_option: Optional[DendroOption] = None) -> None:
super().__init__()
self._test_dtm = test_dtm
self._test_option = test_option
When I type check, mypy gives me the following error:
error: Class cannot subclass 'BaseModel' (has type 'Any')
I don't know why. Is it because I cannot extend the dummy base class?
lionlai1989, petr7555, racinmat, BugliL, qubzes and 6 more