docstring -> typing

This commit is contained in:
klemek
2020-04-27 14:34:01 +02:00
parent f7ac7bc5ee
commit a533b64975
+1 -9
View File
@@ -69,15 +69,7 @@ args_regex = re.compile('"([^"]*)"|\'([^\']*)\'|([^ ]+)')
def parse_arguments(src: str) -> List[str]:
"""
Split a string into separates arguments
:param (str) src:
:rtype: list of str
:return:
"""
def get_found_match(m):
def get_found_match(m: list):
f = [g for g in m if len(g) > 0]
if len(f) > 0:
return f[0]