mirror of https://github.com/astral-sh/ruff
parent
2897d498fd
commit
06a02fc46e
|
|
@ -288,7 +288,7 @@ def absolute_path(p: str) -> Path:
|
|||
def parse_seed_argument(arg: str) -> int | range:
|
||||
"""Helper for argument parsing"""
|
||||
if "-" in arg:
|
||||
start, end = map(int, arg.split("-")) # ty: ignore
|
||||
start, end = map(int, arg.split("-"))
|
||||
if end <= start:
|
||||
raise argparse.ArgumentTypeError(
|
||||
f"Error when parsing seed argument {arg!r}: "
|
||||
|
|
|
|||
Loading…
Reference in New Issue