File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -365,12 +365,12 @@ def infer_function_type_arguments_pass2(
365
365
context : Context ) -> Tuple [Callable , List [Type ]]:
366
366
"""Perform second pass of generic function type argument inference.
367
367
368
- The second pass is needed for arguments with types such as func<s(t)> ,
369
- where both s and t are type variables, when the actual argument is a
370
- lambda with inferred types. The idea is to infer the type variable t
368
+ The second pass is needed for arguments with types such as Function[[T], S] ,
369
+ where both T and S are type variables, when the actual argument is a
370
+ lambda with inferred types. The idea is to infer the type variable T
371
371
in the first pass (based on the types of other arguments). This lets
372
372
us infer the argument and return type of the lambda expression and
373
- thus also the type variable s in this second pass.
373
+ thus also the type variable S in this second pass.
374
374
375
375
Return (the callee with type vars applied, inferred actual arg types).
376
376
"""
You can’t perform that action at this time.
0 commit comments