Skip to content

fix(starlette/fastapi): Use inspect.iscoroutinefunction when Starlette does#6134

Open
alexander-alderman-webb wants to merge 1 commit intomasterfrom
webb/starlette/iscoroutine
Open

fix(starlette/fastapi): Use inspect.iscoroutinefunction when Starlette does#6134
alexander-alderman-webb wants to merge 1 commit intomasterfrom
webb/starlette/iscoroutine

Conversation

@alexander-alderman-webb
Copy link
Copy Markdown
Contributor

@alexander-alderman-webb alexander-alderman-webb commented Apr 24, 2026

Description

Update existing code vendor.

Issues

Contributes to #6085

Reminders

@alexander-alderman-webb alexander-alderman-webb changed the title fix(starlette/fastapi): Use inspect.iscoroutinefunction when Starlette does fix(starlette/fastapi): Use inspect.iscoroutinefunction when Starlette does Apr 24, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 24, 2026

Codecov Results 📊

13 passed | Total: 13 | Pass Rate: 100% | Execution Time: 10.11s

All tests are passing successfully.

❌ Patch coverage is 40.00%. Project has 14787 uncovered lines.

Files with missing lines (2)
File Patch % Lines
starlette.py 5.28% ⚠️ 341 Missing
fastapi.py 15.91% ⚠️ 74 Missing

Generated by Codecov Action

@alexander-alderman-webb alexander-alderman-webb marked this pull request as ready for review April 24, 2026 12:23
@alexander-alderman-webb alexander-alderman-webb requested a review from a team as a code owner April 24, 2026 12:23


# Vendored: https://github.com/Kludex/starlette/blob/0a29b5ccdcbd1285c75c4fdb5d62ae1d244a21b0/starlette/_utils.py#L11-L17
if sys.version_info >= (3, 13): # pragma: no cover
Copy link
Copy Markdown

@cooperoptigrid cooperoptigrid Apr 25, 2026

Choose a reason for hiding this comment

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

This will be true with Python version 4.0 and higher too, right? Using the _compat.py PY313 keeps its to Python 3.x.

Not sure if you care about that distinction

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants