basedmypy
basedmypy copied to clipboard
"The type "type[FunctionType]" is not generic and not indexable" false positive on new type alias syntax
type ClassMethod[T, **P, R] = FunctionType[Concatenate[type[T], P], R]
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
- #739