Skip to content

Commit 0ab7e9f

Browse files
committed
Update docstring
1 parent 58006c5 commit 0ab7e9f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mypy/checkexpr.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,12 @@ def infer_function_type_arguments_pass2(
365365
context: Context) -> Tuple[Callable, List[Type]]:
366366
"""Perform second pass of generic function type argument inference.
367367
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
371371
in the first pass (based on the types of other arguments). This lets
372372
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.
374374
375375
Return (the callee with type vars applied, inferred actual arg types).
376376
"""

0 commit comments

Comments
 (0)