Skip to content

Commit fd1bf01

Browse files
committed
Leave default args to empty string
1 parent f42acd3 commit fd1bf01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jira/client.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2959,19 +2959,19 @@ def delete_user_avatar(self, username: str, avatar: str):
29592959

29602960
def search_users(
29612961
self,
2962-
user: Optional[str] = None,
2962+
user: str = "",
29632963
startAt: int = 0,
29642964
maxResults: int = 50,
29652965
includeActive: bool = True,
29662966
includeInactive: bool = False,
2967-
query: Optional[str] = None,
2967+
query: str = "",
29682968
) -> ResultList[User]:
29692969
"""Get a list of user Resources that match the specified search string.
29702970
"username" query parameter is deprecated in Jira Cloud; the expected parameter now is "query", which can just be the full
29712971
email again. But the first parameter is kept for backwards compatibility.
29722972
29732973
Args:
2974-
user (optional str): a string to match usernames, name or email against.
2974+
user (str): a string to match usernames, name or email against.
29752975
startAt (int): index of the first user to return.
29762976
maxResults (int): maximum number of users to return.
29772977
If maxResults evaluates as False, it will try to get all items in batches.

0 commit comments

Comments
 (0)