-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
On my computer (Arch Linux, Python 3.13, Gooey 1.0.8.1), the following code:
from gooey import GooeyParser
base_parser = GooeyParser(add_help=False)
parser = GooeyParser(parents=[base_parser])raises the following error:
Traceback (most recent call last):
File "/tmp/gooey/main.py", line 4, in <module>
parser = GooeyParser(parents=[base_parser])
File "/tmp/gooey/venv/lib/python3.13/site-packages/gooey/python_bindings/gooey_parser.py", line 66, in __init__
self.__dict__['parser'] = ArgumentParser(**kwargs)
~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/lib/python3.13/argparse.py", line 1821, in __init__
raise TypeError('parents must be a list of ArgumentParser')
TypeError: parents must be a list of ArgumentParser
The issue also appears on Windows with Python 3.13. It does not appear on Ubuntu 22.04 with Python 3.12. So I assume that this is due to a change in argparse in Python 3.13.
Metadata
Metadata
Assignees
Labels
No labels