Skip to content
Snippets Groups Projects
Commit a780d04b authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

Util: star_is_none

parent d4b12afc
No related branches found
No related tags found
No related merge requests found
...@@ -268,3 +268,7 @@ def parse_int_list(a: str, maxim: int = 200) -> List[int]: ...@@ -268,3 +268,7 @@ def parse_int_list(a: str, maxim: int = 200) -> List[int]:
raise mo.CheckError("Větší číslo nemůže být před menším") raise mo.CheckError("Větší číslo nemůže být před menším")
r += [c[0]] if len(c) == 1 else range(c[0], c[1] + 1) r += [c[0]] if len(c) == 1 else range(c[0], c[1] + 1)
return r return r
def star_is_none(x):
return None if x == "*" else x
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment