You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checking that code with mypy generates: test.py:33: error: "T" has no attribute "my_method"
From my understanding type of NonGenericBase.by_name should be Callable[[str], NonGenericBase] (because NonGenericBase is GenericClass['NonGenericBase']) but it looks like it is Callable[[str], T]
The text was updated successfully, but these errors were encountered:
I have code
Checking that code with mypy generates:
test.py:33: error: "T" has no attribute "my_method"
From my understanding type of
NonGenericBase.by_name
should beCallable[[str], NonGenericBase]
(becauseNonGenericBase
isGenericClass['NonGenericBase']
) but it looks like it isCallable[[str], T]
The text was updated successfully, but these errors were encountered: