Skip to content

Commit

Permalink
Update security_admin.py
Browse files Browse the repository at this point in the history
Change type hints for get_running_userid to Union[str, None]

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
  • Loading branch information
ElijahSwiftIBM committed Jan 3, 2024
1 parent af81fc7 commit f4171c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyracf/common/security_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def set_running_userid(self, userid: Union[str, None]) -> None:
raise UserIdError(userid)
self.__running_userid = userid.upper()

def get_running_userid(self) -> None:
def get_running_userid(self) -> Union[str, None]:
if isinstance(self.__running_userid, str):
return self.__running_userid.lower()
return self.__running_userid
Expand Down

0 comments on commit f4171c2

Please sign in to comment.