Skip to content

Commit

Permalink
add partitions for __init__ of Default and Batch Subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
spataphore1337 committed May 5, 2024
1 parent 8a4a562 commit 2c75d34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions faststream/kafka/subscriber/usecase.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ def __init__(
group_id: Optional[str],
listener: Optional["ConsumerRebalanceListener"],
pattern: Optional[str],
partitions: Optional[Iterable["TopicPartition"]],
builder: Callable[..., "AIOKafkaConsumer"],
is_manual: bool,
# Subscriber args
Expand All @@ -284,6 +285,7 @@ def __init__(
group_id=group_id,
listener=listener,
pattern=pattern,
partitions=partitions,
builder=builder,
is_manual=is_manual,
# subscriber args
Expand Down Expand Up @@ -315,6 +317,7 @@ def __init__(
group_id: Optional[str],
listener: Optional["ConsumerRebalanceListener"],
pattern: Optional[str],
partitions: Optional[Iterable["TopicPartition"]],
builder: Callable[..., "AIOKafkaConsumer"],
is_manual: bool,
# Subscriber args
Expand All @@ -337,6 +340,7 @@ def __init__(
group_id=group_id,
listener=listener,
pattern=pattern,
partitions=partitions,
builder=builder,
is_manual=is_manual,
# subscriber args
Expand Down

0 comments on commit 2c75d34

Please sign in to comment.