Skip to content

Commit

Permalink
lint: fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Nov 6, 2024
1 parent 5054b05 commit 56342ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions faststream/cli/utils/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import TYPE_CHECKING, DefaultDict, Optional, Union

if TYPE_CHECKING:
from faststream.app import FastStream
from faststream._internal.application import Application
from faststream.types import LoggerProto


Expand Down Expand Up @@ -64,7 +64,7 @@ def get_log_level(level: Union[LogLevels, str, int]) -> int:
return LOG_LEVELS[level.lower()]


def set_log_level(level: int, app: "FastStream") -> None:
def set_log_level(level: int, app: "Application") -> None:
"""Sets the log level for an application."""
if app.logger and getattr(app.logger, "setLevel", None):
app.logger.setLevel(level) # type: ignore[attr-defined]
Expand Down

0 comments on commit 56342ee

Please sign in to comment.