use more precise error when ignoring

This commit is contained in:
Lendemor 2025-01-23 00:42:22 +01:00
parent 393fba4696
commit 959827a097

View File

@ -1447,7 +1447,7 @@ T = TypeVar("T")
# NoReturn is used to match CustomVarOperationReturn with no type hint.
@overload
def var_operation( # type: ignore
def var_operation( # pyright: ignore [reportOverlappingOverload]
func: Callable[P, CustomVarOperationReturn[NoReturn]],
) -> Callable[P, Var]: ...