We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've tried to find out how to set "optional" param in _p2p.py but failed.
What I want is typing.Optional like
typing.Optional
class B(BaseModel): c: str = Field(default="") class A(BaseModel): b: typing.Optional[B] = Field()
thx a lot🎄🎄
The text was updated successfully, but these errors were encountered:
This is not currently supported, but I will try to support it
Sorry, something went wrong.
Great!!
Looks like it's not a simple job. Maybe the [default] value of the param will also be involved.
& thx again~
Not sure is there anyone need it, just put a quick fix script here:
sed -i 's/: \(.*\) = Field()/: typing.Optional[\1] = None/' my_p2p.py
No branches or pull requests
I've tried to find out how to set "optional" param in _p2p.py but failed.
What I want is
typing.Optional
likethx a lot🎄🎄
The text was updated successfully, but these errors were encountered: