Skip to content

Commit 2ca2470

Browse files
committed
Lint
1 parent ad68de5 commit 2ca2470

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mypy/plugins/constants.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
SINGLEDISPATCH_REGISTER_METHOD: Final = f"{SINGLEDISPATCH_TYPE}.register"
99
SINGLEDISPATCH_CALLABLE_CALL_METHOD: Final = f"{SINGLEDISPATCH_TYPE}.__call__"
1010
SINGLEDISPATCH_REGISTER_RETURN_CLASS: Final = "_SingleDispatchRegisterCallable"
11-
SINGLEDISPATCH_REGISTER_CALLABLE_CALL_METHOD: Final = f"functools.{SINGLEDISPATCH_REGISTER_RETURN_CLASS}.__call__"
11+
SINGLEDISPATCH_REGISTER_CALLABLE_CALL_METHOD: Final = (
12+
f"functools.{SINGLEDISPATCH_REGISTER_RETURN_CLASS}.__call__"
13+
)
1214

1315
ENUM_NAME_ACCESS: Final = {f"{prefix}.name" for prefix in ENUM_BASES} | {
1416
f"{prefix}._name_" for prefix in ENUM_BASES

mypy/plugins/enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from __future__ import annotations
1515

1616
from collections.abc import Iterable, Sequence
17-
from typing import Final, TypeVar, cast
17+
from typing import TypeVar, cast
1818

1919
import mypy.plugin # To avoid circular imports.
2020
from mypy.nodes import TypeInfo

0 commit comments

Comments
 (0)