Skip to content

Commit 83c0cf8

Browse files
authored
Fix python<3.10 compatibility (#899)
1 parent f0d525b commit 83c0cf8

File tree

1 file changed

+1
-1
lines changed
  • packages/jupyter-ai/jupyter_ai/chat_handlers

1 file changed

+1
-1
lines changed

packages/jupyter-ai/jupyter_ai/chat_handlers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from jupyter_ai.handlers import RootChatHandler
3434

3535

36-
def get_preferred_dir(root_dir: str, preferred_dir: str) -> str | None:
36+
def get_preferred_dir(root_dir: str, preferred_dir: str) -> Optional[str]:
3737
if preferred_dir != "":
3838
preferred_dir = os.path.expanduser(preferred_dir)
3939
if not preferred_dir.startswith(root_dir):

0 commit comments

Comments
 (0)