Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 11, 2026. It is now read-only.

fix: keyword only non default argument#1290

Merged
davidhewitt merged 2 commits into
pydantic:mainfrom
JeanArhancet:fix/keyword-only-non-default-argument
May 18, 2024
Merged

fix: keyword only non default argument#1290
davidhewitt merged 2 commits into
pydantic:mainfrom
JeanArhancet:fix/keyword-only-non-default-argument

Conversation

@JeanArhancet

@JeanArhancet JeanArhancet commented May 14, 2024

Copy link
Copy Markdown
Contributor

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

@codecov

codecov Bot commented May 14, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@codspeed-hq

codspeed-hq Bot commented May 14, 2024

Copy link
Copy Markdown

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
Copy Markdown
Contributor Author

please review

@davidhewitt davidhewitt left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Contributor Author

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

@davidhewitt davidhewitt left a comment

Copy link
Copy Markdown
Collaborator

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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