Skip to content
Snippets Groups Projects

Add support for Python 3.12 + Finish the migration to `pyproject.toml`

Merged Eva Bardou requested to merge support-py312 into master
11 files
+ 109
69
Compare changes
  • Side-by-side
  • Inline
Files
11
+ 3
3
@@ -10,10 +10,10 @@ def threshold_float_type(arg):
"""Type function for argparse."""
try:
f = float(arg)
except ValueError:
raise argparse.ArgumentTypeError("Must be a floating point number.")
except ValueError as e:
raise argparse.ArgumentTypeError("Must be a floating point number.") from e
if f < 0 or f > 1:
raise argparse.ArgumentTypeError("Must be between 0 and 1.")
raise argparse.ArgumentTypeError("Must be between 0 and 1.") from None
return f
Loading