Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: keyword only non default argument #1290

Merged

Conversation

JeanArhancet
Copy link
Contributor

@JeanArhancet JeanArhancet commented May 14, 2024

Change Summary

Fix keyword only non default argument

Related issue number

fix pydantic/pydantic#9337

Checklist

  • Unit tests for the changes exist
  • Documentation reflects the changes where applicable
  • Pydantic tests pass with this pydantic-core (except for expected changes)
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Selected Reviewer: @davidhewitt

Copy link

codecov bot commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Copy link

codspeed-hq bot commented May 14, 2024

CodSpeed Performance Report

Merging #1290 will not alter performance

Comparing JeanArhancet:fix/keyword-only-non-default-argument (0ace46a) with main (aed6844)

Summary

✅ 155 untouched benchmarks

@JeanArhancet JeanArhancet force-pushed the fix/keyword-only-non-default-argument branch from 8889628 to 0ace46a Compare May 14, 2024 17:27
@JeanArhancet
Copy link
Contributor Author

please review

Copy link
Contributor

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

Thanks, this change makes sense to me. It looks like we'll have to update pydantic to feed in this new keyword_only mode?

@JeanArhancet
Copy link
Contributor Author

@davidhewitt If I'm not mistaken, Pydantic already passes the keyword_only mode.

Copy link
Contributor

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

Right yes, sorry I had missed that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False-positive SchemaError for keyword-only arg ordering: non-default argument following default argument
2 participants