Skip to content

Commit

Permalink
[PBE-0] - Fix optional properties (#177)
Browse files Browse the repository at this point in the history
* chore: change code owner

* fix: mark optional types as optional
  • Loading branch information
totalimmersion authored Sep 5, 2024
1 parent 1ee5368 commit 9f6762b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stream_chat/base/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ def normalize_sort(self, sort: Union[Dict, List[Dict]] = None) -> List[Dict]:
return sort_fields

def create_token(
self, user_id: str, exp: int = None, iat: int = None, **claims: Any
self,
user_id: str,
exp: Optional[int] = None,
iat: Optional[int] = None,
**claims: Any,
) -> str:
"""
Creates a JWT for a user.
Expand Down

0 comments on commit 9f6762b

Please sign in to comment.