Releases: mpkocher/pydantic-cli
Releases · mpkocher/pydantic-cli
Improve support for Enums
New release with Manifest.in
Merge pull request #47 from mpkocher/bump-version-421 Bump version to include manifest.in
Add py.typed for better mypy support. Improved docs.
Merge pull request #43 from mpkocher/fix-doc-typo Fix typos in docs.
Improve Ergonomics by using cli= in Field
Improve ergonomics by using cli=(short, long)
or cli=(long,)
in Field.
Fixes for unhashable default values
Merge pull request #37 from mpkocher/fix-unhashable-bug Fix issue with assuming defaults are hashable
Improvements to boolean flags
- backward incompatible changes to how boolean flags are handled
- Common/Vanilla case of
debug:bool = False
can be customized with(-d, --debug)
to negate the default value. - Required
x:bool
, orx:Optional[bool]
,x:Optional[bool] = None
semantics remain the same with(--enable-x, --disable-x)
format. - Use Pydantic's
Field
instead of Config.CLI_EXTRA_OPTIONS to have one consistent model - Improve help messages by adding better type description and explicitly display if a field is required
Fix for bug in Enum/choices where Union fields are used
Merge pull request #35 from mpkocher/hotfix-enum Fix bug for enum case where Union is used in issubclass.
Improve support for simple Enums
Merge pull request #34 from mpkocher/add-enum Version 3.4.0. Improve support for simple Enums.
Added Support for List/Set
Merge pull request #33 from mpkocher/update-docs-for-list Bump to 3.3.0. Update docs. Extend List example to include a Set.