Skip to content

Commit 9f6762b

Browse files
[PBE-0] - Fix optional properties (#177)
* chore: change code owner * fix: mark optional types as optional
1 parent 1ee5368 commit 9f6762b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

stream_chat/base/client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ def normalize_sort(self, sort: Union[Dict, List[Dict]] = None) -> List[Dict]:
7373
return sort_fields
7474

7575
def create_token(
76-
self, user_id: str, exp: int = None, iat: int = None, **claims: Any
76+
self,
77+
user_id: str,
78+
exp: Optional[int] = None,
79+
iat: Optional[int] = None,
80+
**claims: Any,
7781
) -> str:
7882
"""
7983
Creates a JWT for a user.

0 commit comments

Comments
 (0)