basedmypy icon indicating copy to clipboard operation
basedmypy copied to clipboard

"The type "type[FunctionType]" is not generic and not indexable" false positive on new type alias syntax

Open DetachHead opened this issue 1 year ago • 2 comments

type ClassMethod[T, **P, R] = FunctionType[Concatenate[type[T], P], R]

DetachHead avatar Aug 19 '24 03:08 DetachHead

it also reports valid-type with th following message:

Type parameters for "FunctionType" requires __future__.annotations or quoted types

even when __future__.annotations is imported

DetachHead avatar Aug 19 '24 03:08 DetachHead

  • #739

KotlinIsland avatar Aug 28 '24 12:08 KotlinIsland