From 4c33050de62119961bf3fc1a2c40316830f1ec03 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 06:38:13 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mypy/checkmember.py | 1 - mypy/messages.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mypy/checkmember.py b/mypy/checkmember.py index defca1dc2823..8f99f96e2dd5 100644 --- a/mypy/checkmember.py +++ b/mypy/checkmember.py @@ -12,7 +12,6 @@ freshen_all_functions_type_vars, ) from mypy.maptype import map_instance_to_supertype -from mypy import errorcodes as codes from mypy.messages import MessageBuilder from mypy.nodes import ( ARG_POS, diff --git a/mypy/messages.py b/mypy/messages.py index cc10452fe417..79719149eb06 100644 --- a/mypy/messages.py +++ b/mypy/messages.py @@ -932,7 +932,7 @@ def readonly_keys_mutated(self, keys: set[str], context: Context) -> None: else: suffix = "are" self.fail( - "ReadOnly {} TypedDict {} mutated".format(format_key_list(list(sorted(keys))), suffix), + "ReadOnly {} TypedDict {} mutated".format(format_key_list(sorted(keys)), suffix), code=codes.TYPEDDICT_READONLY_MUTATED, context=context, )