pyright icon indicating copy to clipboard operation
pyright copied to clipboard

False positive error when solving for TypeVar

Open erictraut opened this issue 1 year ago • 0 comments

This issue is related to #6207 but involves a change in the argument order.

from typing import Callable

def func8[T](a: T, b: Callable[[list[T]], None]) -> T:
    return a

def func9(v: Callable[[list[int]], None]):
    func8(1, v)

erictraut avatar Jun 02 '24 21:06 erictraut