From: John Mulligan Date: Thu, 11 May 2023 14:36:50 +0000 (-0400) Subject: cephadm: be more explicit with a Dict's type specification X-Git-Tag: v18.2.1~326^2~69 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8e2d03d44385bc58f5c619e23191f6a79d400ede;p=ceph-ci.git cephadm: be more explicit with a Dict's type specification Signed-off-by: John Mulligan --- diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 0cb469555f0..9a735249d42 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -1408,7 +1408,7 @@ def dict_get(d: Dict, key: str, default: Any = None, require: bool = False) -> A ################################## -def dict_get_join(d: Dict, key: str) -> Any: +def dict_get_join(d: Dict[str, Any], key: str) -> Any: """ Helper function to get the value of a given key from a dictionary. `List` values will be converted to a string by joining them with a