typing: Starlette
class instance is not accepted by uvicorn.run
#1513
Answered
by
Kludex
mbergal
asked this question in
Potential Issue
-
Pyright:
|
Beta Was this translation helpful? Give feedback.
Answered by
Kludex
Jan 12, 2023
Replies: 2 comments
-
We're aware. When/if #1374 gets merged (or alternative) the issue will be solved. For now, just add some ignore comment. |
Beta Was this translation helpful? Give feedback.
0 replies
-
For now, use Uvicorn uses |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Kludex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For now, use
# type: ignore
.Uvicorn uses
asgiref
, and is a bit stricter on theuvicorn.run()
than Starlette.