Skip to content

Commit abf8259

Browse files
rwbartongvanrossum
authored andcommitted
Update some docstrings after removal of bound_vars in 2db9dc3 (#1385)
1 parent b4b0c1c commit abf8259

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

mypy/applytype.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ def apply_generic_arguments(callable: CallableType, types: List[Type],
1212
"""Apply generic type arguments to a callable type.
1313
1414
For example, applying [int] to 'def [T] (T) -> T' results in
15-
'def [-1:int] (int) -> int'. Here '[-1:int]' is an implicit bound type
16-
variable.
15+
'def (int) -> int'.
1716
1817
Note that each type can be None; in this case, it will not be applied.
1918
"""

mypy/checkexpr.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,7 @@ def infer_function_type_arguments(self, callee_type: CallableType,
388388
389389
Infer based on the types of arguments.
390390
391-
Return a derived callable type that has the arguments applied (and
392-
stored as implicit type arguments).
391+
Return a derived callable type that has the arguments applied.
393392
"""
394393
if not self.chk.typing_mode_none():
395394
# Disable type errors during type inference. There may be errors

mypy/types.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,6 @@ class TypeStrVisitor(TypeVisitor[str]):
933933
Do not preserve original formatting.
934934
935935
Notes:
936-
- Include implicit bound type variables of callables.
937936
- Represent unbound types as Foo? or Foo?[...].
938937
- Represent the NoneTyp type as None.
939938
"""

0 commit comments

Comments
 (0)