From 56342eeb6711fca8c78809365f680070844fe74f Mon Sep 17 00:00:00 2001 From: Nikita Pastukhov Date: Wed, 6 Nov 2024 21:52:06 +0300 Subject: [PATCH] lint: fix mypy --- faststream/cli/utils/logs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/faststream/cli/utils/logs.py b/faststream/cli/utils/logs.py index b576db49ee..c695b2e5be 100644 --- a/faststream/cli/utils/logs.py +++ b/faststream/cli/utils/logs.py @@ -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 @@ -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]