jsonargparse icon indicating copy to clipboard operation
jsonargparse copied to clipboard

Implement minimal boilerplate CLIs derived from type hints and parse from command line, config files and environment variables

Results 74 jsonargparse issues
Sort by recently updated
recently updated
newest added

## 🐛 Bug report Prompted by the super-quick fix of #507 (thanks!) I'm doing some more testing of jsonargparse with nested optional dataclasses, and found out: Cannot configure fields of...

enhancement

## Before submitting - [x] Did you read the [contributing guideline](https://github.com/omni-us/jsonargparse/blob/main/CONTRIBUTING.rst)? - [ ] Did you update **the documentation**? (readme and public docstrings) - [ ] Did you write **unit...

enhancement

## Before submitting - [x] Did you read the [contributing guideline](https://github.com/omni-us/jsonargparse/blob/main/CONTRIBUTING.rst)? - [n/a] Did you update **the documentation**? (readme and public docstrings) - [n/a] Did you write **unit tests** such...

refactor

Using relative config files in dicts doesn't work. It might be that I'm not using the correct syntax tho ### To reproduce 3 files in the same directory 1) `cli.py`...

enhancement
pending author response

## 🚀 Feature request ### Motivation ```py def main(foo: List[str] = None): pass if __name__ == "__main__": CLI(main) ``` Currently, to pass several arguments to a List, the syntax is...

enhancement

## 🚀 Feature request Expose instantiator logic outside of `jsonargparse`: ```python from jsonargparse import instantiate spec = { "class_path": "foo.Bar", "init_args": {"a": 1, "b": 2, "c": 3} } my_bar =...

enhancement

## 🚀 Feature request Hi! I would like to use torch functions straight from the `yaml` file, for example: ```yaml class_path: SomeClass init_args: process: class_path: torch.argmax init_args: dim: 1 ```...

enhancement

## What does this PR do? Fixes callable protocol inheritance by allowing a list of private methods to be considered when matching signatures for inheritance of subclasses. The set of...

## 🐛 Bug report Callable protocols (implement `__call__`) seems to be parser incorrectly in comparison to "normal" protocols. ### To reproduce Example that works ``` from dataclasses import dataclass from...

bug

## 🐛 Bug report No way of selecting a subtype from a union type. When adding an argument which is a union of two types there seems to be no...

enhancement