]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.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)
committerAdam King <adking@redhat.com>
Thu, 31 Aug 2023 17:35:14 +0000 (13:35 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadm.py

index 0cb469555f015e729a54b11f8a322bd7bdd56f7e..9a735249d4211e3c591e315ffbcb8441ad98194a 100755 (executable)
@@ -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