lebrice / SimpleParsing

Simple, Elegant, Typed Argument Parsing with argparse
MIT License
410 stars 52 forks source link

Allow passing `functools.partial` as entries in the `subgroups` dict #196

Closed lebrice closed 1 year ago

lebrice commented 1 year ago

Partially solves #195

Also somewhat related to #191, in that it makes this kind of thing possible again.

Future work: Integrating the Partials feature of #156 with this. This should work out-of-the box, since those are dataclasses that also inherit from functools.partial, but we'll see! :)