Adjust testclient typing and warnings by waketzheng · Pull Request #3322 · Kludex/starlette (original) (raw)

@waketzheng

Summary

Checklist

@waketzheng

[cubic-dev-ai[bot]](/apps/cubic-dev-ai)

Choose a reason for hiding this comment

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

No issues found across 1 file

Tip: cubic could auto-approve low-risk PRs like this, if it thinks it's safe to merge. Learn more

Re-trigger cubic

Kludex

"You should not use the 'timeout' argument with the TestClient. "
"See https://github.com/Kludex/starlette/issues/1108 for more information.",
DeprecationWarning,
stacklevel=2,

Choose a reason for hiding this comment

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

This makes sense.

Kludex

"You can install this with:\n"
" $ pip install httpx2\n"
)
) from None

Choose a reason for hiding this comment

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

This makes sense.

Kludex

Choose a reason for hiding this comment

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

The rest that I didn't mark as "This makes sense" I don't think makes sense.

@waketzheng

@waketzheng

…ent-typing-warnings-20260607

@waketzheng

…m:waketzheng/starlette into codex/testclient-typing-warnings-20260607

@waketzheng

@waketzheng

Kludex

@Kludex

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})