Skip to content

Support Python 3.14

Hello,

When I install this package with Python 3.14, there is an error

Traceback (most recent call last):
  File "/opt/homebrew/Cellar/onionprobe/1.4.0/bin/onionprobe", line 7, in <module>
    sys.exit(run_from_cmdline())
             ~~~~~~~~~~~~~~~~^^
  File "/opt/homebrew/Cellar/onionprobe/1.4.0/libexec/lib/python3.14/site-packages/onionprobe/app.py", line 145, in run_from_cmdline
    run(cmdline())
        ~~~~~~~^^
  File "/opt/homebrew/Cellar/onionprobe/1.4.0/libexec/lib/python3.14/site-packages/onionprobe/config.py", line 297, in cmdline
    parser = cmdline_parser()
  File "/opt/homebrew/Cellar/onionprobe/1.4.0/libexec/lib/python3.14/site-packages/onionprobe/config.py", line 285, in cmdline_parser
    parser.add_argument('--' + argument, **config[argument])
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.14/3.14.0/Frameworks/Python.framework/Versions/3.14/lib/python3.14/argparse.py", line 1538, in add_argument
    action = action_class(**kwargs)
TypeError: BooleanOptionalAction.__init__() got an unexpected keyword argument 'type'

and so there should be some fix.

Can you take a look?

Thanks,