Skip to content

Commit f3bffa1

Browse files
committed
Fix lint
1 parent 32161c5 commit f3bffa1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

stream_chat/base/query_threads.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
import abc
22
from typing import Any, Awaitable, Dict, List, Union
33

4+
from stream_chat.base.client import StreamChatInterface
45
from stream_chat.types.stream_response import StreamResponse
56

67

78
class QueryThreadsInterface(abc.ABC):
8-
def __init__(self):
9-
pass
9+
@abc.abstractmethod
10+
def __init__(self, client: StreamChatInterface):
11+
self.client = client
1012

1113
@property
12-
def url(self):
14+
def url(self) -> str:
1315
return "threads"
1416

1517
@abc.abstractmethod

stream_chat/tests/test_query_threads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Dict
1+
from typing import Dict
22

33
import pytest
44

0 commit comments

Comments
 (0)