-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when parsing config file with type=Path
#94
Comments
Thank you for reporting! Note that Also note that jsonargparse has specific types for checking paths, see https://jsonargparse.readthedocs.io/en/stable/#parsing-paths. If you specifically want from jsonargparse.typing import register_type
from pathlib import Path
register_type(Path, type_check=lambda v, t: isinstance(v, t)) |
Even though |
Thanks for the explanation. I noticed that |
How to reproduce
Error
test.py: error: Parser key "output_dir": not enough values to unpack (expected 2, got 1)
Version
➜ pip list | grep jsonarg jsonargparse 3.19.3
Tracing
The error fails here and it's called from here.
The text was updated successfully, but these errors were encountered: