Skip to content

Commit 4a88449

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0de2627 commit 4a88449

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mypyc/irbuild/util.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Any, Final, FrozenSet, Literal, TypedDict, cast
5+
from typing import Any, Final, FrozenSet, Literal, TypedDict
66
from typing_extensions import NotRequired
77

88
from mypy.nodes import (
@@ -152,7 +152,11 @@ def set_mypyc_attr(key: MypycAttr, value: Any, line: int) -> None:
152152
if isinstance(arg, StrExpr):
153153
set_mypyc_attr(arg.value, True, line)
154154
else:
155-
errors.error("All `mypyc_attr` positional arguments must be string literals.", path, line)
155+
errors.error(
156+
"All `mypyc_attr` positional arguments must be string literals.",
157+
path,
158+
line,
159+
)
156160
else:
157161
arg_value = get_mypyc_attr_literal(arg)
158162
set_mypyc_attr(name, arg_value, line)

0 commit comments

Comments
 (0)