diff options
author | Sage Weil <sage@redhat.com> | 2019-12-10 19:16:23 +0100 |
---|---|---|
committer | Sage Weil <sage@redhat.com> | 2019-12-10 19:16:23 +0100 |
commit | cc8e8d868be807ae7226e02b496513c2f2a4b20f (patch) | |
tree | 75b0b9a747d3346e1a13d501244ec5d525f49650 /src/pybind/mgr/orchestrator.py | |
parent | Merge PR #32138 into master (diff) | |
parent | mgr/rook: Added Mypy static type checking (diff) | |
download | ceph-cc8e8d868be807ae7226e02b496513c2f2a4b20f.tar.xz ceph-cc8e8d868be807ae7226e02b496513c2f2a4b20f.zip |
Merge PR #32127 into master
* refs/pull/32127/head:
mgr/rook: Added Mypy static type checking
Reviewed-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'src/pybind/mgr/orchestrator.py')
-rw-r--r-- | src/pybind/mgr/orchestrator.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pybind/mgr/orchestrator.py b/src/pybind/mgr/orchestrator.py index bfff9608fda..6a8a52f1ef3 100644 --- a/src/pybind/mgr/orchestrator.py +++ b/src/pybind/mgr/orchestrator.py @@ -26,7 +26,8 @@ from mgr_util import format_bytes try: from ceph.deployment.drive_group import DriveGroupSpec - from typing import TypeVar, Generic, List, Optional, Union, Tuple, Iterator, Callable, Any, Type + from typing import TypeVar, Generic, List, Optional, Union, Tuple, Iterator, Callable, Any, \ + Type, Sequence except ImportError: pass @@ -606,7 +607,7 @@ class Completion(_Promise): def pretty_print(completions): - # type: (List[Completion]) -> str + # type: (Sequence[Completion]) -> str return ', '.join(c.pretty_print() for c in completions) |