Skip to content

Commit 0011a71

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 02d1ccb commit 0011a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/plugins/dataclasses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ def dataclass_tag_callback(ctx: ClassDefContext) -> None:
966966
def dataclass_class_maker_callback(ctx: ClassDefContext) -> bool:
967967
"""Hooks into the class typechecking process to add support for dataclasses."""
968968
if any(i.is_named_tuple for i in ctx.cls.info.mro):
969-
ctx.api.fail(f"A NamedTuple cannot be a dataclass.", ctx=ctx.cls.info)
969+
ctx.api.fail("A NamedTuple cannot be a dataclass.", ctx=ctx.cls.info)
970970
return True
971971
transformer = DataclassTransformer(
972972
ctx.cls, ctx.reason, _get_transform_spec(ctx.reason), ctx.api

0 commit comments

Comments
 (0)