docstring -> typing
This commit is contained in:
+1
-9
@@ -69,15 +69,7 @@ args_regex = re.compile('"([^"]*)"|\'([^\']*)\'|([^ ]+)')
|
|||||||
|
|
||||||
|
|
||||||
def parse_arguments(src: str) -> List[str]:
|
def parse_arguments(src: str) -> List[str]:
|
||||||
"""
|
def get_found_match(m: list):
|
||||||
Split a string into separates arguments
|
|
||||||
|
|
||||||
:param (str) src:
|
|
||||||
:rtype: list of str
|
|
||||||
:return:
|
|
||||||
"""
|
|
||||||
|
|
||||||
def get_found_match(m):
|
|
||||||
f = [g for g in m if len(g) > 0]
|
f = [g for g in m if len(g) > 0]
|
||||||
if len(f) > 0:
|
if len(f) > 0:
|
||||||
return f[0]
|
return f[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user