Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions stubs/kafka-python/kafka/consumer/subscription_state.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import abc
from _typeshed import Incomplete
from enum import IntEnum

from kafka.structs import OffsetAndMetadata
from kafka.structs import OffsetAndMetadata, TopicPartition
from kafka.util import synchronized

class SubscriptionType(IntEnum):
Expand Down Expand Up @@ -54,7 +54,7 @@ class SubscriptionState:
@synchronized
def has_default_offset_reset_policy(self): ...
@synchronized
def is_offset_reset_needed(self, partition): ...
def is_offset_reset_needed(self, partition: TopicPartition) -> bool: ...
@synchronized
def has_all_fetch_positions(self): ...
@synchronized
Expand Down Expand Up @@ -86,7 +86,7 @@ class SubscriptionState:
@synchronized
def is_assigned(self, partition) -> bool: ...
@synchronized
def is_paused(self, partition): ...
def is_paused(self, partition: TopicPartition) -> bool: ...
@synchronized
def is_fetchable(self, partition) -> bool: ...
@synchronized
Expand Down
Loading