]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/orch: fix mypy errors
authorSebastian Wagner <sewagner@redhat.com>
Tue, 15 Jun 2021 08:19:40 +0000 (10:19 +0200)
committerSebastian Wagner <sewagner@redhat.com>
Tue, 10 Aug 2021 14:31:15 +0000 (16:31 +0200)
commit8e1535da6dc830b909ef3fdecaa12dde1ce80962
treef6e8da3f342ea434d0de0632bcb67be1d326f7e1
parentd62412c19ff0711d4aeb51ba1d2332b4b241846a
mgr/orch: fix mypy errors

Fixes:

```
orchestrator/__init__.py:6: note: In module imported here:
orchestrator/_interface.py: note: In member "yaml_representer" of class "DaemonDescription":
orchestrator/_interface.py:1039: error: Argument 1 to "represent_dict" of "SafeRepresenter" has incompatible type "ItemsView[Any, Any]"; expected "Mapping[Any, Any]"
orchestrator/_interface.py: note: In member "yaml_representer" of class "ServiceDescription":
orchestrator/_interface.py:1178: error: Argument 1 to "represent_dict" of "SafeRepresenter" has incompatible type "ItemsView[Any, Any]"; expected "Mapping[Any, Any]"
orchestrator/_interface.py: note: At top level:
orchestrator/_interface.py:1181: error: Argument 2 to "add_representer" has incompatible type "Callable[[SafeDumper, DaemonDescription], Any]"; expected "Callable[[SafeDumper, ServiceDescription], Node]"
Found 3 errors in 1 file (checked 29 source files)
```

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
(cherry picked from commit 90c9980e8ff2fb975e70c61d5eb7578385876065)
src/pybind/mgr/orchestrator/_interface.py