Skip to content

Commit

Permalink
lint: fix top-level mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Dec 15, 2024
1 parent d958655 commit 2bb82c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion faststream/asgi/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ async def run(
config = uvicorn.Config(
app=self,
log_level=log_level,
**{
**{ # type: ignore[arg-type]
key: v
for key, v in run_extra_options.items()
if key in uvicorn_config_params
Expand Down
6 changes: 3 additions & 3 deletions faststream/message/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .source_type import SourceType

if TYPE_CHECKING:
from faststream._internal.basic_types import AnyDict, DecodedMessage
from faststream._internal.basic_types import AnyDict
from faststream._internal.types import AsyncCallable

# prevent circular imports
Expand Down Expand Up @@ -74,7 +74,7 @@ def __repr__(self) -> str:
filter(
bool,
(
f"body={self.body}",
f"body={self.body!r}",
f"content_type={self.content_type}",
f"message_id={self.message_id}",
f"correlation_id={self.correlation_id}",
Expand All @@ -89,7 +89,7 @@ def __repr__(self) -> str:

return f"{self.__class__.__name__}({inner})"

async def decode(self) -> Optional["DecodedMessage"]:
async def decode(self) -> Optional["Any"]:
"""Serialize the message by lazy decoder.
Returns a cache after first usage. To prevent such behavior, please call
Expand Down

0 comments on commit 2bb82c2

Please sign in to comment.