Skip to content

Commit fcc1f4b

Browse files
committed
force named arguments
1 parent 09c7b94 commit fcc1f4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/admin/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def assign_roles(user: "User", roles: Optional[Set[str]]) -> None:
7373
session.commit()
7474

7575
@staticmethod
76-
def find_user(
76+
def find_user(*, # asterisk forces explicit naming of all arguments when calling this method
7777
user_id: Optional[int] = None, api_key: Optional[str] = None, user_email: Optional[str] = None
7878
) -> "User":
7979
user = (

0 commit comments

Comments
 (0)