mypy failed to evaluate TypeVar in function parameter #18816
Labels
bug
mypy got something wrong
topic-type-context
Type context / bidirectional inference
topic-type-variables
Bug Report
mypy cannot infer
typevar
which is defined as the function parameter, even though it could be evaluated from the following decorated functionTo Reproduce
Expected Behavior
no error
Actual Behavior
Argument 1 has incompatible type "Callable[[int], int]"; expected "Callable[[int], Never]"
Your Environment
The text was updated successfully, but these errors were encountered: