Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.2k
Relax check for validated data in default factory utils#10909
New issue
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
cloudflare-workers-and-pagesbot commentedNov 20, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Deploying pydantic-docs with |
Latest commit: | dcfe613 |
Status: | ✅ Deploy successful! |
Preview URL: | https://1e3f818a.pydantic-docs.pages.dev |
Branch Preview URL: | https://validated-data-fix.pydantic-docs.pages.dev |
codspeed-hqbot commentedNov 20, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
CodSpeed Performance ReportMerging#10909 willnot alter performanceComparing Summary
|
github-actionsbot commentedNov 20, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
We just need to also modify the first overload to be:
@overloaddefget_default(self,*,call_default_factory:Literal[True],validated_data:dict[str,Any]|None= ...)->Any: ...
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
…ntic into validated-data-fix
b985365
intomainUh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
…oved error messages (#204)* Improve mismatched type for StrEnum* Overhaul subcommand matching* Additional subcommand matching tests* Min 3.11 for StrEnum tests* fix test ignore* Test nits* typeguard compatibility* Add minimum typeguard version* fix typeguard errors* typeguard refactor, more subcommand matching tests* Add 3.13 to CI (fixes#206)* Add pydantic version exclude, waiting for patchRelated:pydantic/pydantic#10912,pydantic/pydantic#10909* Improve type warnings + errors* Generic subcommand example, docs updates* Remove unused* `build` => `pytest`,closes#206* mypy
Uh oh!
There was an error while loading.Please reload this page.
Following up on#10678 (comment)
cc@Viicos, breaking for this case:#10905 (comment)
I think moving inside here makes sense. Though, I understood your original point in the comment 👍
Fixes#10912