Skip to content

Commit

Permalink
Add ignore redundant-cast
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl committed Aug 16, 2024
1 parent c57cb07 commit 256ce11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faststream/broker/fastapi/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def after_processed(
exc_tb: Optional["TracebackType"] = None,
) -> Optional[bool]:
if not exc_type and (
background := cast(
background := cast( # type: ignore[redundant-cast]
Optional[BackgroundTasks],
getattr(context.get_local("message"), "background", None),
)
Expand Down

0 comments on commit 256ce11

Please sign in to comment.