@@ -371,7 +371,9 @@ def capital(self):
371371 )
372372
373373
374- int_re = re .compile (r"\b((int(eger)?)|size|length|max|min|num(ber)?)\b" , flags = re .IGNORECASE )
374+ int_re = re .compile (
375+ r"\b((int(eger)?)|size|length|max|min|num(ber)?)\b" , flags = re .IGNORECASE
376+ )
375377str_re = re .compile (r"\bstr(ing)?\b" , flags = re .IGNORECASE )
376378float_re = re .compile (r"\b(float|decimal)\b" , flags = re .IGNORECASE )
377379bool_re = re .compile (r"\bbool(ean)?\b" , flags = re .IGNORECASE )
@@ -380,9 +382,11 @@ def capital(self):
380382output_re = re .compile (r"output" , flags = re .IGNORECASE )
381383dir_re = re .compile (r"\b(folder|directory)\b" , flags = re .IGNORECASE )
382384
383- default_re = re .compile (r"default(?: value)?(?:[:=] ?| )([^ )\]]+)" , flags = re .IGNORECASE )
384- float_re = re .compile (r'[+-]?([0-9]+([.][0-9]*)?|[.][0-9]+)' , flags = re .IGNORECASE )
385- int_re = re .compile (r'[+-]?([0-9]+[^.0-9])' , flags = re .IGNORECASE )
385+ default_re = re .compile (
386+ r"default(?: value)?(?:[:=] ?| )([^ )\]]+)" , flags = re .IGNORECASE
387+ )
388+ float_re = re .compile (r"[+-]?([0-9]+([.][0-9]*)?|[.][0-9]+)" , flags = re .IGNORECASE )
389+ int_re = re .compile (r"[+-]?([0-9]+[^.0-9])" , flags = re .IGNORECASE )
386390
387391
388392def infer_type (string ) -> typing .Optional [cli_types .CliType ]:
0 commit comments