Skip to content

Commit 9aa3d9f

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy/plugins/functools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,8 @@ def functools_lru_cache_callback(ctx: mypy.plugin.FunctionContext) -> Type:
410410
first_arg_type = ctx.arg_types[0][0]
411411

412412
# Explicitly check that this is NOT a literal or other non-function type
413-
from mypy.types import LiteralType, Instance
413+
from mypy.types import Instance, LiteralType
414+
414415
proper_first_arg_type = get_proper_type(first_arg_type)
415416
if isinstance(proper_first_arg_type, (LiteralType, Instance)):
416417
# This is likely maxsize=128 or similar - let MyPy handle it

0 commit comments

Comments
 (0)