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

⬆️ Upgrade Starlette supported version range to >=0.40.0,<0.49.0#14077

Merged
tiangolo merged 3 commits intofastapi:masterfrom
musicinmybrain:starlette-0.48
Sep 16, 2025
Merged

⬆️ Upgrade Starlette supported version range to >=0.40.0,<0.49.0#14077
tiangolo merged 3 commits intofastapi:masterfrom
musicinmybrain:starlette-0.48

Conversation

@musicinmybrain
Copy link
Contributor

@musicinmybrainmusicinmybrain commentedSep 14, 2025
edited
Loading

Starlette 0.48.0 introducedHTTP_422_UNPROCESSABLE_CONTENT as a new name forHTTP_422_UNPROCESSABLE_ENTITY and deprecated the old name due to RFC 9110; seeKludex/starlette#2939.

I updated all instancesto the new name and increased the lower bound on the Starlette version to use the literal integer or string value422/"422" instead of eitherHTTP_422_UNPROCESSABLE_CONTENT orHTTP_422_UNPROCESSABLE_ENTITY, which makes FastAPI compatible with Starlette >=0.48 without deprecation warnings while preserving backwards compatibility with Starlette<0.48.

@Kludex, FYI.

svlandeg and ducviet00 reacted with thumbs up emoji
@github-actions

This comment was marked as outdated.

@Kludex
Copy link
Member

If we use 429 instead of the constant, there's no need to bump.

Maybe we should do that?

@musicinmybrain
Copy link
ContributorAuthor

If we use 429 instead of the constant, there's no need to bump.

Maybe we should do that?

As in, just write literal integer422? Sure, that’s a sensible idea, and it would be easy enough to do.@tiangolo, do you have a preference one way or the other?

Kludex reacted with thumbs up emoji

@tiangolo
Copy link
Member

Yep, I think a literal422 should be enough, and that way we avoid having to restrict the lower bound limit, which is otherwise not necessary. 🤓

Restore support for Starlette 0.40 through 0.47 (without deprecationwarnings in Starlette 0.48) by using the literal integer `422` or stringrepresentation `"422"` in place of either the new RFC 9110 name`HTTP_422_UNPROCESSABLE_CONTENT` or the earlier RFC 7231 name`HTTP_422_UNPROCESSABLE_ENTITY`.
@musicinmybrainmusicinmybrain changed the title⬆️ Upgrade Starlette supported version range to >=0.48.0,<0.49.0⬆️ Upgrade Starlette supported version range to >=0.40.0,<0.49.0Sep 15, 2025
@github-actions

This comment was marked as outdated.

@github-actions
Copy link
Contributor

📝 Docs preview for commit0e23139 at:https://e30477a7.fastapitiangolo.pages.dev

Copy link
Member

@tiangolotiangolo left a comment

Choose a reason for hiding this comment

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

Nice, thank you! 🚀

And thanks@Kludex and@svlandeg! 🙌

This will be available in FastAPI 0.116.2, released in the next hours.

@tiangolotiangolo merged commit7563579 intofastapi:masterSep 16, 2025
53 checks passed
Vasilije1990 added a commit to topoteretes/cognee that referenced this pull requestOct 22, 2025
<!-- .github/pull_request_template.md -->## Description<!--Please provide a clear, human-generated description of the changes inthis PR.DO NOT use AI-generated descriptions. We want to understand your thoughtprocess and reasoning.-->In `uv.lock`, we've already been using fastapi version 0.119.0 for awhile.However, with#1586 changes we can't allow fastapi to be lower than0.116.2.Seefastapi/fastapi#14077## Type of Change<!-- Please check the relevant option -->- [ ] Bug fix (non-breaking change that fixes an issue)- [ ] New feature (non-breaking change that adds functionality)- [ ] Breaking change (fix or feature that would cause existingfunctionality to change)- [ ] Documentation update- [ ] Code refactoring- [ ] Performance improvement- [ ] Other (please specify):## Screenshots/Videos (if applicable)<!-- Add screenshots or videos to help explain your changes -->## Pre-submission Checklist<!-- Please check all boxes that apply before submitting your PR -->- [ ] **I have tested my changes thoroughly before submitting this PR**- [ ] **This PR contains minimal changes necessary to address theissue/feature**- [ ] My code follows the project's coding standards and styleguidelines- [ ] I have added tests that prove my fix is effective or that myfeature works- [ ] I have added necessary documentation (if applicable)- [ ] All new and existing tests pass- [ ] I have searched existing PRs to ensure this change hasn't beensubmitted already- [ ] I have linked any relevant issues in the description- [ ] My commits have clear and descriptive messages## DCO AffirmationI affirm that all code in every commit of this pull request conforms tothe terms of the Topoteretes Developer Certificate of Origin.
ivantodorovich added a commit to camptocamp/rest-framework that referenced this pull requestNov 3, 2025
Starting from `starlette >= 0.48`, the `status.HTTP_422_UNPROCESSABLE_ENTITY`emits a deprecation warning, as it has been replaced by`status.HTTP_422_UNPROCESSABLE_CONTENT`.To be compatible with past and future versions, we simply use the integer value`422`, aligning also with the updated `fastapi` documentation:See:-fastapi/fastapi#14077
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@svlandegsvlandegsvlandeg left review comments

@tiangolotiangolotiangolo approved these changes

@KludexKludexKludex approved these changes

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@musicinmybrain@Kludex@tiangolo@svlandeg

Comments


[8]ページ先頭

©2009-2026 Movatter.jp