From d503b3a1e9022162c1d53af25cb8e48f1429b79c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 3 Aug 2023 21:46:13 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- packages/jupyter-ai/jupyter_ai/handlers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/jupyter-ai/jupyter_ai/handlers.py b/packages/jupyter-ai/jupyter_ai/handlers.py index bde490834..1f85ff31f 100644 --- a/packages/jupyter-ai/jupyter_ai/handlers.py +++ b/packages/jupyter-ai/jupyter_ai/handlers.py @@ -116,7 +116,9 @@ def get_chat_user(self) -> ChatUser: if collaborative: names = self.current_user.name.split(" ", maxsplit=2) - initials = "".join([(name.capitalize()[0] if len(name) > 0 else "") for name in names]) + initials = "".join( + [(name.capitalize()[0] if len(name) > 0 else "") for name in names] + ) chat_user_kwargs = { # set in case IdentityProvider doesn't return initials, e.g. # JupyterHub (#302)