You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
am using asgi-logger and extended AccessLoggerMiddleware to customise the logging in the application and when I upgrade fastapi to 0.109.x version getting issue on mypy, any suggestions ?
error: Argument 1 to "Middleware" has incompatible type "type[AccessLoggerMiddleware]"; expected "type[_MiddlewareClass[[]]]" [arg-type]
import structlog
from asgi_logger import middleware as asl
from asgiref.typing import ASGI3Application, HTTPScope
class AccessLoggerMiddleware(asl.AccessLoggerMiddleware):
//code
The text was updated successfully, but these errors were encountered:
Hi ,
am using
asgi-logger
and extendedAccessLoggerMiddleware
to customise the logging in the application and when I upgrade fastapi to 0.109.x version getting issue on mypy, any suggestions ?error: Argument 1 to "Middleware" has incompatible type "type[AccessLoggerMiddleware]"; expected "type[_MiddlewareClass[[]]]" [arg-type]
and this is my customise version of logging.
The text was updated successfully, but these errors were encountered: