Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 3, 2023
1 parent 1e21752 commit 0a8a771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jupyter-ai/jupyter_ai/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ def get_chat_user(self) -> ChatUser:
)

login = getpass.getuser()
initials=login[0].capitalize()
initials = login[0].capitalize()

if collaborative:
chat_user_kwargs = {
# set in case IdentityProvider doesn't return initials, e.g.
# JupyterHub (#302)
"initials": initials,
**asdict(self.current_user)
**asdict(self.current_user),
}
return ChatUser(**chat_user_kwargs)

Expand Down

0 comments on commit 0a8a771

Please sign in to comment.