use overload information from class definition to resolve type parameters in cases of Protocol
s
#989
Labels
rejected upstream
also a bug in pyright/pylance or feature that isn't in pyright/pylance - they refused to address it
type checking / linting
issues relating to existing diagnostic rules or proposals for new diagnostic rules
here,
f(a, "")
should resolve toCallable[[A, str], str]
/X
=str
,R
=str
because it can retrieve information from the definition ofA
to find a valid solutiona more complicated scenario involving intersections would look like:
credit to @jorenham for the discovery of this defect
The text was updated successfully, but these errors were encountered: