Skip to content

Commit

Permalink
test: add new overload
Browse files Browse the repository at this point in the history
  • Loading branch information
doublehomixide committed Jan 5, 2025
1 parent 5296158 commit 9d769d9
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion faststream/redis/broker/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,27 @@ def _subscriber_setup_extra(self) -> "AnyDict":
async def publish( # type: ignore[override]
self,
message: "SendableMessage" = None,
channel: None = None,
*,
reply_to: str = "",
headers: Optional["AnyDict"] = None,
correlation_id: Optional[str] = None,
list: Optional[str] = None,
stream: Optional[str] = None,
maxlen: Optional[int] = None,
) -> None: ...

@overload
async def publish( # type: ignore[override]
self,
message: None = None,
channel: Optional[str] = None,
*,
reply_to: str = "",
headers: Optional["AnyDict"] = None,
correlation_id: Optional[str] = None,
list: Optional[str] = None,
stream: None = None,
stream: Optional[str] = None,
maxlen: Optional[int] = None,
) -> None: ...

Expand Down

0 comments on commit 9d769d9

Please sign in to comment.