Pyright complains about typing of middleware argument in constructor #2451
Unanswered
martimors
asked this question in
Potential Issue
Replies: 3 comments 4 replies
-
I can't reproduce it. Are you in the latest pyright version? |
Beta Was this translation helpful? Give feedback.
2 replies
-
I have a similar error popping up, I've made an Issue over on asgi-loggers' repo documenting my case. Since I posted, I figured out it started since commit 866a15. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am facing the same issue in FastAPI. I have made this middleware
and when I use it like this:
I get the warning related to type mismatch. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Error reported independently by both
pyright
and the pycharm type-checker, I assume it is also caught bymypy
.Repro example:
Errors reported by pyright:
Beta Was this translation helpful? Give feedback.
All reactions