Skip to content

Commit

Permalink
Chore/update deps2 (#1418)
Browse files Browse the repository at this point in the history
* chore: bump dependencies

* lint: fix mypy

---------

Co-authored-by: Kumaran Rajendhiran <[email protected]>
  • Loading branch information
Lancetnik and kumaranvpl authored May 3, 2024
1 parent 7bc3428 commit 669647f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
7 changes: 1 addition & 6 deletions faststream/broker/wrapper/call.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import asyncio
from functools import wraps
from typing import (
TYPE_CHECKING,
Any,
Expand Down Expand Up @@ -186,13 +185,9 @@ def set_wrapped(
def _wrap_decode_message(
func: Callable[..., Awaitable[T_HandlerReturn]],
params_ln: int,
) -> Callable[
["StreamMessage[MsgType]"],
Awaitable[T_HandlerReturn],
]:
) -> Callable[["StreamMessage[MsgType]"], Awaitable[T_HandlerReturn]]:
"""Wraps a function to decode a message and pass it as an argument to the wrapped function."""

@wraps(func)
async def decode_wrapper(message: "StreamMessage[MsgType]") -> T_HandlerReturn:
"""A wrapper function to decode and handle a message."""
msg = message.decoded_body
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ devdocs = [
"mkdocs-material==9.5.18",
"mkdocs-static-i18n==1.2.2",
"mdx-include==1.4.2",
"mkdocstrings[python]==0.24.3",
"mkdocstrings[python]==0.25.0",
"mkdocs-literate-nav==0.6.1",
"mkdocs-git-revision-date-localized-plugin==1.2.4",
"mike==2.0.0", # versioning
Expand All @@ -93,7 +93,7 @@ devdocs = [

types = [
"faststream[rabbit,confluent,kafka,nats,redis]",
"mypy==1.9.0",
"mypy==1.10.0",
# mypy extensions
"types-PyYAML",
"types-setuptools",
Expand All @@ -106,15 +106,15 @@ types = [

lint = [
"faststream[types]",
"ruff==0.4.1",
"ruff==0.4.2",
"bandit==1.7.8",
"semgrep==1.69.0",
"semgrep==1.70.0",
"codespell==2.2.6",
]

test-core = [
"coverage[toml]==7.4.4",
"pytest==8.1.1",
"pytest==8.2.0",
"pytest-asyncio==0.23.6",
"dirty-equals==0.7.1.post0",
]
Expand Down

0 comments on commit 669647f

Please sign in to comment.