Skip to content

Update some docstrings after removal of bound_vars in 2db9dc3 #1385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions mypy/applytype.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ def apply_generic_arguments(callable: CallableType, types: List[Type],
"""Apply generic type arguments to a callable type.

For example, applying [int] to 'def [T] (T) -> T' results in
'def [-1:int] (int) -> int'. Here '[-1:int]' is an implicit bound type
variable.
'def (int) -> int'.

Note that each type can be None; in this case, it will not be applied.
"""
Expand Down
3 changes: 1 addition & 2 deletions mypy/checkexpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,7 @@ def infer_function_type_arguments(self, callee_type: CallableType,

Infer based on the types of arguments.

Return a derived callable type that has the arguments applied (and
stored as implicit type arguments).
Return a derived callable type that has the arguments applied.
"""
if not self.chk.typing_mode_none():
# Disable type errors during type inference. There may be errors
Expand Down
1 change: 0 additions & 1 deletion mypy/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,6 @@ class TypeStrVisitor(TypeVisitor[str]):
Do not preserve original formatting.

Notes:
- Include implicit bound type variables of callables.
- Represent unbound types as Foo? or Foo?[...].
- Represent the NoneTyp type as None.
"""
Expand Down