chore(deps): update dependency starlette to v0.52.1 #49

Merged
renovate-bot merged 1 commit from renovate/starlette-0.x into main 2026-05-08 14:51:17 +02:00
Collaborator

This PR contains the following updates:

Package Change Age Confidence
starlette (changelog) ==0.49.1==0.52.1 age confidence

Release Notes

Kludex/starlette (starlette)

v0.52.1: Version 0.52.1

Compare Source

What's Changed


Full Changelog: https://github.com/Kludex/starlette/compare/0.52.0...0.52.1

v0.52.0: Version 0.52.0

Compare Source

In this release, State can be accessed using dictionary-style syntax for improved type safety (#​3036).

from collections.abc import AsyncIterator
from contextlib import asynccontextmanager
from typing import TypedDict

import httpx

from starlette.applications import Starlette
from starlette.requests import Request

class State(TypedDict):
    http_client: httpx.AsyncClient

@​asynccontextmanager
async def lifespan(app: Starlette) -> AsyncIterator[State]:
    async with httpx.AsyncClient() as client:
        yield {"http_client": client}

async def homepage(request: Request[State]):
    client = request.state["http_client"]
    # If you run the below line with mypy or pyright, it will reveal the correct type.
    reveal_type(client)  # Revealed type is 'httpx.AsyncClient'

See Accessing State for more details.


Full Changelog: https://github.com/Kludex/starlette/compare/0.51.0...0.52.0

v0.51.0: Version 0.51.0

Compare Source

Added

  • Add allow_private_network in CORSMiddleware #​3065.

Changed

  • Increase warning stacklevel on DeprecationWarning for wsgi module #​3082.

New Contributors

Full Changelog: https://github.com/Kludex/starlette/compare/0.50.0...0.51.0

v0.50.0: Version 0.50.0

Compare Source

Removed


Full Changelog: https://github.com/Kludex/starlette/compare/0.49.3...0.50.0

v0.49.3: Version 0.49.3

Compare Source

Fixed

  • Relax strictness on Middleware type #​3059.

Full Changelog: https://github.com/Kludex/starlette/compare/0.49.2...0.49.3

v0.49.2: Version 0.49.2

Compare Source

Fixed

  • Ignore if-modified-since header if if-none-match is present in StaticFiles #​3044.

Full Changelog: https://github.com/Kludex/starlette/compare/0.49.1...0.49.2


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [starlette](https://github.com/Kludex/starlette) ([changelog](https://starlette.dev/release-notes/)) | `==0.49.1` → `==0.52.1` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/starlette/0.52.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/starlette/0.49.1/0.52.1?slim=true) | --- ### Release Notes <details> <summary>Kludex/starlette (starlette)</summary> ### [`v0.52.1`](https://github.com/Kludex/starlette/releases/tag/0.52.1): Version 0.52.1 [Compare Source](https://github.com/Kludex/starlette/compare/0.52.0...0.52.1) #### What's Changed - Only use `typing_extensions` in older Python versions by [@&#8203;Kludex](https://github.com/Kludex) in [#&#8203;3109](https://github.com/Kludex/starlette/pull/3109) *** **Full Changelog**: <https://github.com/Kludex/starlette/compare/0.52.0...0.52.1> ### [`v0.52.0`](https://github.com/Kludex/starlette/releases/tag/0.52.0): Version 0.52.0 [Compare Source](https://github.com/Kludex/starlette/compare/0.51.0...0.52.0) In this release, `State` can be accessed using dictionary-style syntax for improved type safety ([#&#8203;3036](https://github.com/Kludex/starlette/pull/3036)). ```python from collections.abc import AsyncIterator from contextlib import asynccontextmanager from typing import TypedDict import httpx from starlette.applications import Starlette from starlette.requests import Request class State(TypedDict): http_client: httpx.AsyncClient @&#8203;asynccontextmanager async def lifespan(app: Starlette) -> AsyncIterator[State]: async with httpx.AsyncClient() as client: yield {"http_client": client} async def homepage(request: Request[State]): client = request.state["http_client"] # If you run the below line with mypy or pyright, it will reveal the correct type. reveal_type(client) # Revealed type is 'httpx.AsyncClient' ``` See [Accessing State](lifespan.md#accessing-state) for more details. *** **Full Changelog**: <https://github.com/Kludex/starlette/compare/0.51.0...0.52.0> ### [`v0.51.0`](https://github.com/Kludex/starlette/releases/tag/0.51.0): Version 0.51.0 [Compare Source](https://github.com/Kludex/starlette/compare/0.50.0...0.51.0) #### Added - Add `allow_private_network` in `CORSMiddleware` [#&#8203;3065](https://github.com/Kludex/starlette/pull/3065). #### Changed - Increase warning stacklevel on `DeprecationWarning` for wsgi module [#&#8203;3082](https://github.com/Kludex/starlette/pull/3082). *** #### New Contributors - [@&#8203;santibreo](https://github.com/santibreo) made their first contribution in [#&#8203;3082](https://github.com/Kludex/starlette/pull/3082) - [@&#8203;iddqd888](https://github.com/iddqd888) made their first contribution in [#&#8203;3083](https://github.com/Kludex/starlette/pull/3083) **Full Changelog**: <https://github.com/Kludex/starlette/compare/0.50.0...0.51.0> ### [`v0.50.0`](https://github.com/Kludex/starlette/releases/tag/0.50.0): Version 0.50.0 [Compare Source](https://github.com/Kludex/starlette/compare/0.49.3...0.50.0) #### Removed - Drop Python 3.9 support [#&#8203;3061](https://github.com/Kludex/starlette/pull/3061). *** **Full Changelog**: <https://github.com/Kludex/starlette/compare/0.49.3...0.50.0> ### [`v0.49.3`](https://github.com/Kludex/starlette/releases/tag/0.49.3): Version 0.49.3 [Compare Source](https://github.com/Kludex/starlette/compare/0.49.2...0.49.3) #### Fixed - Relax strictness on `Middleware` type [#&#8203;3059](https://github.com/Kludex/starlette/pull/3059). *** **Full Changelog**: <https://github.com/Kludex/starlette/compare/0.49.2...0.49.3> ### [`v0.49.2`](https://github.com/Kludex/starlette/releases/tag/0.49.2): Version 0.49.2 [Compare Source](https://github.com/Kludex/starlette/compare/0.49.1...0.49.2) #### Fixed - Ignore `if-modified-since` header if `if-none-match` is present in `StaticFiles` [#&#8203;3044](https://github.com/Kludex/starlette/pull/3044). *** **Full Changelog**: <https://github.com/Kludex/starlette/compare/0.49.1...0.49.2> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNjguNSIsInVwZGF0ZWRJblZlciI6IjQzLjE2OC41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
renovate-bot added 1 commit 2026-05-07 16:00:46 +02:00
renovate-bot scheduled this pull request to auto merge when all checks succeed 2026-05-07 16:00:49 +02:00
renovate-bot merged commit 9f47fe23ec into main 2026-05-08 14:51:17 +02:00
renovate-bot deleted branch renovate/starlette-0.x 2026-05-08 14:51:19 +02:00
Sign in to join this conversation.
No description provided.