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

Add runtime validation of@validate_call callable argument#10627

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
Viicos merged 1 commit intomainfromvalidate-call-runtime-tc
Oct 15, 2024

Conversation

Viicos
Copy link
Member

@ViicosViicos commentedOct 14, 2024
edited
Loading

Change Summary

Wrapping up#10484
Closes#10461

Related issue number

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review,please add a comment including the phrase "please review" to assign reviewers

@github-actionsgithub-actionsbot added the relnotes-fixUsed for bugfixes. labelOct 14, 2024
@cloudflare-workers-and-pagesCloudflare Workers and Pages

Deploying pydantic-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit:cc74d42
Status: ✅  Deploy successful!
Preview URL:https://bb03277e.pydantic-docs.pages.dev
Branch Preview URL:https://validate-call-runtime-tc.pydantic-docs.pages.dev

View logs

@codspeed-hqCodSpeed HQ
Copy link

CodSpeed Performance Report

Merging#10627 willnot alter performance

Comparingvalidate-call-runtime-tc (cc74d42) withmain (60f7047)

Summary

✅ 44 untouched benchmarks

@ViicosViicos added relnotes-feature and removed relnotes-fixUsed for bugfixes. labelsOct 14, 2024
@ViicosViicosenabled auto-merge (squash)October 14, 2024 20:09
@github-actionsGitHub Actions
Copy link
Contributor

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  pydantic
  validate_call_decorator.py
  pydantic/_internal
  _generate_schema.py
  _validate_call.py
Project Total 

This report was generated bypython-coverage-comment-action

Copy link
Contributor

@sydney-runklesydney-runkle left a comment

Choose a reason for hiding this comment

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

LGTM, but would like answers to a few questions before we merge.

Thanks@Viicos for finishing this up, and thanks@kc0506 for your work on the initial changes here!

'__name__',
'__qualname__',
'__annotations__',
'__dict__', # required for __module__
Copy link
Contributor

Choose a reason for hiding this comment

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

Have we thought about the consequences of removing this?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

__name__ was necessary for the core_config title thing but#10562 made it not necessary anymore. For the rest, I don't think it will change anything.

sydney-runkle reacted with thumbs up emoji
@ViicosViicos merged commitba50d94 intomainOct 15, 2024
65 checks passed
@ViicosViicos deleted the validate-call-runtime-tc branchOctober 15, 2024 15:17
@sydney-runkle
Copy link
Contributor

Didn't realize things were set to auto merge, let's still chat about the above questions + potentially address them in a new small PR.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@sydney-runklesydney-runklesydney-runkle approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

validate_call not working with class/custom callables
3 participants
@Viicos@sydney-runkle@kc0506

[8]ページ先頭

©2009-2025 Movatter.jp