Implement minimal boilerplate CLIs derived from type hints and parse from command line, config files and environment variables
326
stars
49
forks
source link
Selecting a subtype raises an exception in Python 3.12.7 #590
Closed
eggry closed 1 month ago
🐛 Bug report
To reproduce
First, create a file named
demo.py
with the following content:Then, run the following command in your terminal:
The output is:
Such behavior will also affect LitGPT. For example, the command
will also result in the same error because
JSON
is a subclass ofDataModule
.Expected behavior
On Python 3.12.6, the output is:
Environment
pip install jsonargparse==4.32.1