]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: Redefinition of unused name from line n (F811)
authorMichael Fritch <mfritch@suse.com>
Wed, 3 Feb 2021 14:06:16 +0000 (07:06 -0700)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 23 Feb 2021 09:58:23 +0000 (10:58 +0100)
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 80990f5bdc8eebeffa0cbb8e2c525ad268ed5cea)

src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/services/cephadmservice.py
src/pybind/mgr/cephadm/tests/test_scheduling.py
src/pybind/mgr/tox.ini

index 649dff04a55a4e231482a46a084a12efdcc85def..a9b5d92c174761f52fb1bf86bd7c4beb771b40c2 100644 (file)
@@ -72,11 +72,6 @@ except ImportError as e:
     remoto = None
     remoto_import_error = str(e)
 
-try:
-    from typing import List
-except ImportError:
-    pass
-
 logger = logging.getLogger(__name__)
 
 T = TypeVar('T')
index 890979b90e2f7871826730160fe17c8159878162..95fc14f479d8710711bb0511ad67cbc0ab243942 100644 (file)
@@ -4,7 +4,7 @@ import re
 import logging
 import subprocess
 from abc import ABCMeta, abstractmethod
-from typing import TYPE_CHECKING, List, Callable, Any, TypeVar, Generic, \
+from typing import TYPE_CHECKING, List, Callable, TypeVar, Generic, \
     Optional, Dict, Any, Tuple, NewType
 
 from mgr_module import HandleCommandResult, MonCommandFailed
index 47d7ba54c4079160115ea263d3ddf7f00b3b9f98..d59b2ed9377a7625ff3ac7bfa868f9c2b7ae2fe4 100644 (file)
@@ -9,7 +9,7 @@ from ceph.deployment.hostspec import HostSpec
 from ceph.deployment.service_spec import ServiceSpec, PlacementSpec, ServiceSpecValidationError
 
 from cephadm.module import HostAssignment
-from orchestrator import DaemonDescription, OrchestratorValidationError, OrchestratorError, HostSpec
+from orchestrator import DaemonDescription, OrchestratorValidationError, OrchestratorError
 
 
 def wrapper(func):
index a60158aba32a6dbd0c85cf8d28805f9fc4e21bfe..0dcd002873c1b57a8c7abef14c5519fb18d93104 100644 (file)
@@ -12,7 +12,6 @@ requires = cython
 max-line-length = 100
 ignore =
     E501,
-    F811,
     W503,
 exclude =
     .tox,