]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: Redefinition of unused name from line n (F811) 39153/head
authorMichael Fritch <mfritch@suse.com>
Wed, 3 Feb 2021 14:06:16 +0000 (07:06 -0700)
committerMichael Fritch <mfritch@suse.com>
Fri, 5 Feb 2021 18:20:58 +0000 (11:20 -0700)
Signed-off-by: Michael Fritch <mfritch@suse.com>
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 40d1be8b039e27237316f7e59bd3a6787fc8e404..1532bcb2bad61849228e67ffe6579660a7c0bffe 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 8dfb1501d7f09b5807b35fb6dc51e04fc926e776..a72a0e7d90867a8881c3aa690079370968cbaa64 100644 (file)
@@ -3,7 +3,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 ab0380419804fcab1ff585b5dc61a0c99abd4858..7cd60b24bcbcbff64277c1ed05a0adceabaa2269 100644 (file)
@@ -12,7 +12,6 @@ requires = cython
 max-line-length = 100
 ignore =
     E501,
-    F811,
     W503,
 exclude =
     .tox,