Skip to content

Commit 25b2129

Browse files
authored
Fix CallableType.formal_arguments docstring (#11861)
PR #11543 changed the `formal_arguments` method to return a list of formal arguments instead of yielding them. However the docstring was not updated at the time to reflect this.
1 parent c0c86d0 commit 25b2129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ def max_possible_positional_args(self) -> int:
12731273
return sum([kind.is_positional() for kind in self.arg_kinds])
12741274

12751275
def formal_arguments(self, include_star_args: bool = False) -> List[FormalArgument]:
1276-
"""Yields the formal arguments corresponding to this callable, ignoring *arg and **kwargs.
1276+
"""Return a list of the formal arguments of this callable, ignoring *arg and **kwargs.
12771277
12781278
To handle *args and **kwargs, use the 'callable.var_args' and 'callable.kw_args' fields,
12791279
if they are not None.

0 commit comments

Comments
 (0)