Skip to content

Commit a5d54e8

Browse files
author
Rafael Marinho
committed
fix(cha-769): mypy fix apply
1 parent 34792f3 commit a5d54e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stream_chat/base/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,7 @@ def query_drafts(
14411441
pass
14421442

14431443
@abc.abstractmethod
1444-
def get_user_locations(self, user_id: str, **options: Any) -> StreamResponse:
1444+
def get_user_locations(self, user_id: str, **options: Any) -> Union[StreamResponse, Awaitable[StreamResponse]]:
14451445
"""
14461446
Get the locations of a user.
14471447
"""
@@ -1450,7 +1450,7 @@ def get_user_locations(self, user_id: str, **options: Any) -> StreamResponse:
14501450
@abc.abstractmethod
14511451
def update_user_location(
14521452
self, message_id: str, options: Optional[SharedLocationsOptions] = None
1453-
) -> StreamResponse:
1453+
) -> Union[StreamResponse, Awaitable[StreamResponse]]:
14541454
"""
14551455
Update the location of a user.
14561456
"""

0 commit comments

Comments
 (0)