Skip to content

Commit

Permalink
[PBE-1321] lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kanat committed Feb 15, 2024
1 parent e1e5043 commit d3fc4ff
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
6 changes: 1 addition & 5 deletions stream_chat/async_chat/segment.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
from typing import Optional

from stream_chat.base.segment import SegmentInterface
from stream_chat.types.segment import (
QuerySegmentTargetsOptions,
SegmentData,
SegmentDataWithId,
)
from stream_chat.types.segment import QuerySegmentTargetsOptions, SegmentData
from stream_chat.types.stream_response import StreamResponse


Expand Down
2 changes: 2 additions & 0 deletions stream_chat/base/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,7 @@ def list_roles(self) -> Union[StreamResponse, Awaitable[StreamResponse]]:
"""
pass

@abc.abstractmethod
def segment(
self,
segment_type: SegmentType,
Expand Down Expand Up @@ -1028,6 +1029,7 @@ def delete_segment_targets(
"""
pass

@abc.abstractmethod
def campaign(
self, campaign_id: Optional[str], data: Optional[CampaignData]
) -> TCampaign:
Expand Down
1 change: 0 additions & 1 deletion stream_chat/base/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from stream_chat.types.segment import (
QuerySegmentTargetsOptions,
SegmentData,
SegmentDataWithId,
SegmentType,
)
from stream_chat.types.stream_response import StreamResponse
Expand Down
4 changes: 0 additions & 4 deletions stream_chat/types/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ class SegmentData(TypedDict, total=False):
filter: Optional[Dict]


class SegmentDataWithId(SegmentData, total=False):
id: Optional[str]


class QuerySegmentsOptions(Pager, total=False):
sort: Optional[List[SortParam]]

Expand Down

0 comments on commit d3fc4ff

Please sign in to comment.