Fabrice Normandin

Results 102 issues of Fabrice Normandin

It would be nice to be able to add arguments for a given TypedDict, in addition to dataclasses. ```python class FfcvLoaderConfig(TypedDict, total=False): os_cache: bool """ Leverages the operating system for...

This PR adds Partials: Dynamically created dataclasses for arbitrary callables. It's still a work in progress. I'll update this whenever I find the time.

The changes in the latest PRs for the nesting mode/nesting level were backward-incompatible. The blame is on me for letting them through without checking this first. - The `add_dest_to_option_strings` argument...

bug

Would be a good idea to refactor the FieldWrapper class a bit. The `args_dict` (a dict of all the argparse arguments for a given field, that get passed to `parser.add_arguments`...

refactoring

**Describe the bug** Can't use fields with nargs="*" with a subparser field that comes after it. The values passed for the list field are incorrectly assumed to be values for...

bug

**Describe the bug** A clear and concise description of what the bug is. **To Reproduce** ```python from simple_parsing import ArgumentParser from dataclasses import dataclass from simple_parsing.helpers import mutable_field @dataclass class...

bug

**Describe the bug** SimpleParsing doesn't currently account for conflict in option strings between "regular" arguments (added through `parser.add_argument("--foo", default=123)` and through `parser.add_argument(DataclassWithFooField, dest="bar")`. **To Reproduce** (modified example from #46 )...

bug
enhancement

**Describe the bug** OK so this one is tricky and very specific, and shouldn't impact anyone really. When we're trying to parse multiple lists using the same attribute (no prefixing,...

bug
low-priority