]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/orch: fix mypy errors
authorMichael Fritch <mfritch@suse.com>
Mon, 4 May 2020 20:54:54 +0000 (14:54 -0600)
committerMichael Fritch <mfritch@suse.com>
Tue, 5 May 2020 18:54:46 +0000 (12:54 -0600)
commite6d7fb67282dfd8d1f614980821f9cb7ff4fdf51
tree79f0598506eedf68afcf0d6cfec81f1684b1b322
parentd2066b6ecddc9a4d4dadb68cc2dcfadde38aa94a
mgr/orch: fix mypy errors

orchestrator/module.py: note: In member "_daemon_add_misc" of class "OrchestratorCli":
orchestrator/module.py:655: error: Incompatible types in assignment (expression has type "PlacementSpec", variable has type "Optional[str]")
orchestrator/module.py:656: error: Argument 1 to "ServiceSpec" has incompatible type "Optional[str]"; expected "str"
orchestrator/module.py:656: error: Argument "placement" to "ServiceSpec" has incompatible type "Optional[str]"; expected "Optional[PlacementSpec]"

orchestrator/module.py: note: In member "_apply_misc" of class "OrchestratorCli":
orchestrator/module.py:881: error: Incompatible types in assignment (expression has type "PlacementSpec", variable has type "Optional[str]")
orchestrator/module.py:882: error: Argument 1 to "ServiceSpec" has incompatible type "Optional[str]"; expected "str"
orchestrator/module.py:882: error: Argument "placement" to "ServiceSpec" has incompatible type "Optional[str]"; expected "Optional[PlacementSpec

Signed-off-by: Michael Fritch <mfritch@suse.com>
src/pybind/mgr/orchestrator/module.py