Skip to content

Commit

Permalink
CallableType.copy_modified: accept sequence for arg_names (#14840)
Browse files Browse the repository at this point in the history
In #4070, `CallableType.__init__` was changed to accept `arg_names:
Sequence[str | None]` so we could pass e.g. `list[str]` to it. We're
making a similar change to `CallableType.copy_modified`.
  • Loading branch information
ikonst authored Mar 6, 2023
1 parent acde81b commit 2ab1d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,7 @@ def copy_modified(
self: CT,
arg_types: Bogus[Sequence[Type]] = _dummy,
arg_kinds: Bogus[list[ArgKind]] = _dummy,
arg_names: Bogus[list[str | None]] = _dummy,
arg_names: Bogus[Sequence[str | None]] = _dummy,
ret_type: Bogus[Type] = _dummy,
fallback: Bogus[Instance] = _dummy,
name: Bogus[str | None] = _dummy,
Expand Down

0 comments on commit 2ab1d82

Please sign in to comment.