-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugmypy got something wrongmypy got something wrong
Description
See #9865. (UPDATED)
I believe we should issue an error in this case.
See (disabled) test:
mypy/test-data/unit/check-typeguard.test
Lines 290 to 296 in fffbe88
| [case testTypeGuardMethodOverride-skip] | |
| from typing_extensions import TypeGuard | |
| class C: | |
| def is_float(self, a: object) -> TypeGuard[float]: pass | |
| class D(C): | |
| def is_float(self, a: object) -> bool: pass # E: Some error | |
| [builtins fixtures/tuple.pyi] |
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrong