You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the function pydantic_class_to_parser, the help function wraps everything in Field().
Desired Output
-C CHECK, --check CHECK
Check plan file or plan requirements and exit. Value (CHECK) is p/plan or r/require (case insensitive), for instance: -C plan or -C
P (type:str|NoneType default:None)
Broken Output
-C CHECK, --check CHECK
Field(annotation=Union[str, NoneType], required=False, default=None, description='Check plan file or plan requirements and exit. Value (CHECK) is p/plan or r/require (case insensitive), for instance: -C plan or -C P', json_schema_extra={'cli': ['-C', '-- check']}, metadata=[_PydanticGeneralMetadata(pattern='^(?i:p|plan|r|require)')])
I'm pretty sure this is what is causing the issue.
Rolling back to 9.0.0 resolves the issue.
The text was updated successfully, but these errors were encountered:
There's an effort to purposely use Pydantic itself to output the display of the Field and for pydantic-cli to be a passthrough layer. Otherwise it turns into this fragile translation layer (see previous commits/versions).
When using the function
pydantic_class_to_parser
, the help function wraps everything inField()
.Desired Output
Broken Output
I'm pretty sure this is what is causing the issue.
Rolling back to
9.0.0
resolves the issue.The text was updated successfully, but these errors were encountered: