From a533b64975fe4a45c6075122ad7f9383d97b71ef Mon Sep 17 00:00:00 2001 From: klemek Date: Mon, 27 Apr 2020 14:34:01 +0200 Subject: [PATCH] docstring -> typing --- meme_otron/utils.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/meme_otron/utils.py b/meme_otron/utils.py index 2ffaaa3..27688ff 100644 --- a/meme_otron/utils.py +++ b/meme_otron/utils.py @@ -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]