From 9300137660bb5ab24148fb22116b44536f134222 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Fri, 1 Oct 2021 20:19:07 +0300 Subject: [PATCH] Removes unused import from `test-data/unit/plugins` --- test-data/unit/plugins/arg_kinds.py | 3 --- test-data/unit/plugins/decimal_to_int.py | 5 +---- test-data/unit/plugins/depshook.py | 2 +- test-data/unit/plugins/type_anal_hook.py | 2 +- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/test-data/unit/plugins/arg_kinds.py b/test-data/unit/plugins/arg_kinds.py index e2fc94a7ba51..5392e64c4f11 100644 --- a/test-data/unit/plugins/arg_kinds.py +++ b/test-data/unit/plugins/arg_kinds.py @@ -1,7 +1,4 @@ -import sys from typing import Optional, Callable - -from mypy.nodes import Context from mypy.plugin import Plugin, MethodContext, FunctionContext from mypy.types import Type diff --git a/test-data/unit/plugins/decimal_to_int.py b/test-data/unit/plugins/decimal_to_int.py index 98e747ed74c0..21fd3b518b7d 100644 --- a/test-data/unit/plugins/decimal_to_int.py +++ b/test-data/unit/plugins/decimal_to_int.py @@ -1,8 +1,5 @@ -import builtins -from typing import Optional, Callable -from mypy.plugin import Plugin, AnalyzeTypeContext -from mypy.types import CallableType, Type +from mypy.plugin import Plugin class MyPlugin(Plugin): diff --git a/test-data/unit/plugins/depshook.py b/test-data/unit/plugins/depshook.py index 037e2861e4dc..76277f3cb82b 100644 --- a/test-data/unit/plugins/depshook.py +++ b/test-data/unit/plugins/depshook.py @@ -1,4 +1,4 @@ -from typing import Optional, Callable, List, Tuple +from typing import List, Tuple from mypy.plugin import Plugin from mypy.nodes import MypyFile diff --git a/test-data/unit/plugins/type_anal_hook.py b/test-data/unit/plugins/type_anal_hook.py index 66b24bcf323d..86d18d8c8611 100644 --- a/test-data/unit/plugins/type_anal_hook.py +++ b/test-data/unit/plugins/type_anal_hook.py @@ -1,7 +1,7 @@ from typing import Optional, Callable from mypy.plugin import Plugin, AnalyzeTypeContext -from mypy.types import Type, UnboundType, TypeList, AnyType, CallableType, TypeOfAny +from mypy.types import Type, TypeList, AnyType, CallableType, TypeOfAny # The official name changed to NoneType but we have an alias for plugin compat reasons # so we'll keep testing that here. from mypy.types import NoneTyp