Mauricio Villegas

Results 276 comments of Mauricio Villegas

> is the combination CLI + dataclass not supported? It is supported. Just note that CLI without subcommands receives a function. The parameters of the function could have as type...

@karlgem the issue that you reported in https://github.com/omni-us/jsonargparse/issues/100#issuecomment-1408413796 has been fixed in pull request #266. In the same pull request, support for pydantic's BaseModel classes has been added. The idea...

Some time ago I added backporting of PEPs 585 and 604 types in python 3.7-3.9, though this was only used to get types from stub (*.pyi) files. Even though it...

@srdecny find attached. Just run `build_mkl_wheel.sh`. [build-pykaldi-whl.zip](https://github.com/pykaldi/pykaldi/files/14385340/build-pykaldi-whl.zip)

The motivation for this feature is precisely to allow implementing automatic generation of completions. In particular, automatic generation from type hints. Also note that it is not strictly necessary to...

> I feel that's probably out of scope? Isn't the whole point of `argparse.ArgumentParser.add_argument(type)` to perform type validation? Seems odd to offload this to `shtab`. The point of a tool...

@bilelomrani1 thanks for pointing this out. Certainly there should be a way to get the details of the dataclass. This should be similar to how it is being done for...

Any reason why it is not possible to pass a logger instance to pytest's caplog? The only option is to give a logger name. However, that does not work in...

@ruial please do share the patch that you are doing. Or someone else please share a workaround.

> You want `--print_config` to work for multiple subcommands even though later only one subcommand can be run at a time? Or you want to run multiple subcommands in a...