Commit 1a775037 authored by Maxime Perrotin's avatar Maxime Perrotin

Add few more mypy annotations

parent a4bee08c
......@@ -177,7 +177,7 @@ def fields_adb_init (fields: Dict[str, Tuple[str, str]]) -> List [str]:
return result
def fields_first_key (fields: Dict[str, Tuple[str, str]]) -> List [str]:
def fields_first_key (fields: Dict[str, Tuple[str, str]]) -> str:
'''
Return the first field name.. The dict is ordered in python 3.7+
'''
......@@ -295,9 +295,9 @@ def choice_adb_element (options : Dict[str, Tuple[str, Tuple[str, str]]]) -> Lis
return result
def choice_adb_image (options : Dict[str, Tuple[str, Tuple[str, str]]]) -> List [str]:
def choice_adb_image (options : Dict[str, Tuple[str, Tuple[str, str]]]) -> List[str]:
''' Code for the ASN.1 Value Notation of a CHOICE type '''
result = []
result : List[str] = []
first = True
for field, (EnumID, (sort, _)) in options.items():
if not first:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment