Skip to content

(🐞) "Cannot infer type argument" when one of multiple arguments can't be inferred #16100

@KotlinIsland

Description

@KotlinIsland
from typing import Generic, _T as T
def f1(key: list[T], value: list[T]): ...

f1([1], [])  # Cannot infer type argument 1 of "f"  [misc]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions