use more precise error when ignoring
This commit is contained in:
parent
393fba4696
commit
959827a097
@ -1447,7 +1447,7 @@ T = TypeVar("T")
|
|||||||
|
|
||||||
# NoReturn is used to match CustomVarOperationReturn with no type hint.
|
# NoReturn is used to match CustomVarOperationReturn with no type hint.
|
||||||
@overload
|
@overload
|
||||||
def var_operation( # type: ignore
|
def var_operation( # pyright: ignore [reportOverlappingOverload]
|
||||||
func: Callable[P, CustomVarOperationReturn[NoReturn]],
|
func: Callable[P, CustomVarOperationReturn[NoReturn]],
|
||||||
) -> Callable[P, Var]: ...
|
) -> Callable[P, Var]: ...
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user