Skip to content

Commit 7827b47

Browse files
committed
Don't TypeError on 3.13 and older
1 parent 764d5c0 commit 7827b47

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/norwegianblue/cli.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@
2929

3030
def main() -> None:
3131
parser = argparse.ArgumentParser(
32-
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter,
33-
suggest_on_error=True,
32+
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter
3433
)
34+
# Added in Python 3.14
35+
parser.suggest_on_error = True
3536
parser.add_argument(
3637
"product",
3738
nargs="*",

0 commit comments

Comments
 (0)