]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/orchestrator: disallow_untyped_defs = True 39021/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Mon, 18 Jan 2021 15:02:38 +0000 (16:02 +0100)
committerJuan Miguel Olmo Martínez <jolmomar@redhat.com>
Tue, 26 Jan 2021 15:09:45 +0000 (16:09 +0100)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit c95ba878c66aae44816b1451049449685d444f0a)

src/pybind/mgr/orchestrator/_interface.py

index df5ece65ca6599fd2934e460f82ed865087d9c87..f56e0684e9390a86e475ea81c988ec0badc0e8c4 100644 (file)
@@ -114,9 +114,6 @@ def handle_exception(prefix: str, perm: str, func: FuncT) -> FuncT:
     return cast(FuncT, wrapper_copy)
 
 
-class InnerCliCommandCallable(Protocol):
-    def __call__(self, prefix: str) -> Callable[[FuncT], FuncT]: ...
-
 class InnerCliCommandCallable(Protocol):
     def __call__(self, prefix: str) -> Callable[[FuncT], FuncT]: ...