Skip to content

Commit 0a200b6

Browse files
committed
Mypy fix
1 parent 19e004a commit 0a200b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bugout/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def get_user_by_id(
9191
def find_user(
9292
self,
9393
username: str,
94-
token: Union[str, uuid.UUID] = None,
94+
token: Optional[Union[str, uuid.UUID]] = None,
9595
timeout: float = REQUESTS_TIMEOUT,
9696
**kwargs: Dict[str, Any],
9797
) -> data.BugoutUser:

bugout/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_user_by_id(
8787
def find_user(
8888
self,
8989
username: str,
90-
token: Union[str, uuid.UUID] = None,
90+
token: Optional[Union[str, uuid.UUID]] = None,
9191
**kwargs: Dict[str, Any],
9292
) -> BugoutUser:
9393
find_user_path = f"user/find?username={username}"

0 commit comments

Comments
 (0)