diff --git a/mo/util.py b/mo/util.py index 10c2d63896d8f70cb31de877a5a4ced9458a4e7f..23c9612828bb2048ed9480050df616319d5b0db4 100644 --- a/mo/util.py +++ b/mo/util.py @@ -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") r += [c[0]] if len(c) == 1 else range(c[0], c[1] + 1) return r + + +def star_is_none(x): + return None if x == "*" else x