From 429fed5a8c3f708ed740a302ee71f55bf9ae5039 Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Mon, 11 Dec 2023 18:56:09 +0100 Subject: [PATCH] Remove unused imports --- .pylintrc | 2 +- locust_plugins/synchronizer.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pylintrc b/.pylintrc index debfb67..d0bcf8d 100644 --- a/.pylintrc +++ b/.pylintrc @@ -11,7 +11,7 @@ attr-rgx=[a-z0-9_]{1,30}$ ignored-argument-names=_.*|^ignored_|^unused_|^kwargs|^environment [MESSAGES CONTROL] -disable=logging-not-lazy,logging-fstring-interpolation,missing-docstring,wrong-import-position,wrong-import-order,too-few-public-methods,invalid-name,protected-access,logging-format-interpolation,dangerous-default-value,global-statement,too-many-locals,too-many-arguments,too-many-instance-attributes,blacklisted-name,attribute-defined-outside-init,broad-except,bare-except,consider-using-with,too-many-branches,unspecified-encoding,arguments-differ,broad-exception-raised,wildcard-import,unused-import,keyword-arg-before-vararg +disable=logging-not-lazy,logging-fstring-interpolation,missing-docstring,wrong-import-position,wrong-import-order,too-few-public-methods,invalid-name,protected-access,logging-format-interpolation,dangerous-default-value,global-statement,too-many-locals,too-many-arguments,too-many-instance-attributes,blacklisted-name,attribute-defined-outside-init,broad-except,bare-except,consider-using-with,too-many-branches,unspecified-encoding,arguments-differ,broad-exception-raised,wildcard-import,keyword-arg-before-vararg [MASTER] ignore=locustio,examples diff --git a/locust_plugins/synchronizer.py b/locust_plugins/synchronizer.py index f35c42f..007dc34 100644 --- a/locust_plugins/synchronizer.py +++ b/locust_plugins/synchronizer.py @@ -1,10 +1,10 @@ -from typing import Dict, Iterator, Type, Optional +from typing import Dict, Iterator, Optional import logging from gevent.event import AsyncResult -from locust import User, events +from locust import User from locust.env import Environment -from locust.runners import MasterRunner, WorkerRunner +from locust.runners import WorkerRunner _results: Dict[int, AsyncResult] = {} _iterator: Optional[Iterator[Dict]] = None