-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugmypy got something wrongmypy got something wrongfalse-positivemypy gave an error on correct codemypy gave an error on correct codepriority-1-normal
Description
The type checker can't infer the type argument in the call to f below, even though there seems to be no reason why it shouldn't be able to do it:
from typing import List, TypeVar
T = TypeVar('T')
def f(a: List[T], b: List[T]) -> None: pass
x = ['']
f(x, []) # Cannot infer type argument 1 of "f"
finite-state-machine, pawelrubin, einsmein, ap-leemurus, KotlinIsland and 3 more
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongfalse-positivemypy gave an error on correct codemypy gave an error on correct codepriority-1-normal