typing map _RequestData in testclient.py might be missing type bytes #2296
Answered
by
Kludex
VietThan
asked this question in
Potential Issue
Replies: 1 comment 1 reply
-
PR welcome. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context
I'm coming from using FastAPI but I have an endpoint where I use it in the following manner:
The endpoint itself is defined something like:
Issue
The test above works, but mypy giving me an error:
At the moment, in
starlette/testclient.py
is the following:I would like to submit a PR to add
bytes
if we think how I'm using the TestClient is appropriate.Beta Was this translation helpful? Give feedback.
All reactions