From 2ab1d82ee1e01f02e963fdec8d52811002b87bdc Mon Sep 17 00:00:00 2001 From: Ilya Konstantinov Date: Mon, 6 Mar 2023 00:27:52 -0500 Subject: [PATCH] CallableType.copy_modified: accept sequence for arg_names (#14840) 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`. --- mypy/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypy/types.py b/mypy/types.py index 9858559ad5c1..208f1126995c 100644 --- a/mypy/types.py +++ b/mypy/types.py @@ -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,