Skip to content

Commit 1f0b9bb

Browse files
check_callable: disable no-any-return error code for mypy
1 parent ac81749 commit 1f0b9bb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
# mypy: disable-error-code="no-any-return"
2+
13
from typing import Any
24

35

46
def check_gradual_guarantee(arg: Any) -> int:
57
# if Any materialized to `Callable[[], int] | None`, this function type checks
68
if callable(arg):
7-
return arg() # type: ignore[no-any-return] # pyright: ignore[reportUnnecessaryTypeIgnoreComment]
9+
return arg()
810
return -1

0 commit comments

Comments
 (0)