[mypy-orchestrator.*]
disallow_untyped_defs = True
+[mypy-orchestrator.*]
+disallow_untyped_defs = True
+
# Make cephadm and rook happy
[mypy-OpenSSL]
ignore_missing_imports = True
"""
Called before the daemon is removed.
"""
+ assert daemon.daemon_type is not None
assert self.TYPE == daemon_type_to_service(daemon.daemon_type)
logger.debug(f'Pre remove daemon {self.TYPE}.{daemon.daemon_id}')
"""
Called after the daemon is removed.
"""
+ assert daemon.daemon_type is not None
assert self.TYPE == daemon_type_to_service(daemon.daemon_type)
logger.debug(f'Post remove daemon {self.TYPE}.{daemon.daemon_id}')
class InnerCliCommandCallable(Protocol):
def __call__(self, prefix: str) -> Callable[[FuncT], FuncT]: ...
+class InnerCliCommandCallable(Protocol):
+ def __call__(self, prefix: str) -> Callable[[FuncT], FuncT]: ...
def _cli_command(perm: str) -> InnerCliCommandCallable:
def inner_cli_command(prefix: str) -> Callable[[FuncT], FuncT]:
f._hide_in_features = True # type: ignore
return f
-
class Orchestrator(object):
"""
Calls in this class may do long running remote operations, with time