Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support serialization as any forSecret types andUrl types#10947

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

Merged
sydney-runkle merged 3 commits intomainfromeasier-ser
Nov 25, 2024

Conversation

sydney-runkle
Copy link
Contributor

@sydney-runklesydney-runkle commentedNov 22, 2024
edited
Loading

Fixes#10946
Fixes#9491

This might not be the best approach, but relieves some pressure for now. Leans into the coupling betweenpydantic andpydantic-core. I think it's better to lean into this than to pretend it doesn't exist.

Working on docs test fixes

@github-actionsgithub-actionsbot added the relnotes-fixUsed for bugfixes. labelNov 22, 2024
@codspeed-hqCodSpeed HQ
Copy link

codspeed-hqbot commentedNov 22, 2024
edited
Loading

CodSpeed Performance Report

Merging#10947 willnot alter performance

Comparingeasier-ser (a84e306) withmain (15f693a)

Summary

✅ 46 untouched benchmarks

@cloudflare-workers-and-pagesCloudflare Workers and Pages
Copy link

cloudflare-workers-and-pagesbot commentedNov 22, 2024
edited
Loading

Deploying pydantic-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit:a84e306
Status: ✅  Deploy successful!
Preview URL:https://9dc69f81.pydantic-docs.pages.dev
Branch Preview URL:https://easier-ser.pydantic-docs.pages.dev

View logs

@github-actionsGitHub Actions
Copy link
Contributor

github-actionsbot commentedNov 22, 2024
edited
Loading

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  pydantic/_internal
  _fields.py
  _generate_schema.py
  _typing_extra.py
Project Total 

This report was generated bypython-coverage-comment-action

Copy link
Contributor

@davidhewittdavidhewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This seems fine for now 👍

It would be nice in the long run to either decide this is what we want users to do too, or to find a better way to support types with__get_pydantic_core_schema__.

sydney-runkle reacted with thumbs up emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@davidhewittdavidhewittdavidhewitt approved these changes

@dmontagudmontagudmontagu approved these changes

Assignees
No one assigned
Labels
relnotes-fixUsed for bugfixes.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2.10: Trouble serializing url types (as any), similar to secret types Problem when serializing models withSecretStrs
3 participants
@sydney-runkle@davidhewitt@dmontagu

[8]ページ先頭

©2009-2025 Movatter.jp