tiangolo/fastapi

middleware type

linpan opened this issue · 0 comments

Privileged issue

  • I'm @tiangolo or he asked me directly to create an issue here.

Issue Content

app.add_middleware(GZipMiddleware), pycharm 2023.3.5, will tooltip:: Expected type 'Type[_MiddlewareClass]' (matched generic type 'Type[_MiddlewareClass[ParamSpec("P")]]'), got 'Type[GZipMiddleware]' instead
CleanShot 2024-03-26 at 09 22 35