]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: be more explicit with a Dict's type specification
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 11 May 2023 14:36:50 +0000 (10:36 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 15 Jun 2023 20:35:34 +0000 (16:35 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadm.py

index 4319bd66fdf9492792fdd82da354072212fa5799..5d982db700abc571d92d4e3eb532a7f9964d51ec 100755 (executable)
@@ -1409,7 +1409,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