Skip to content

Commit

Permalink
Change types for python3.10 compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
KastanDay committed Mar 18, 2024
1 parent e32ee20 commit d159598
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ai_ta_backend/service/nomic_service.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import datetime
import os
import time
from typing import Union

import backoff
import nomic
Expand Down Expand Up @@ -71,7 +72,7 @@ def __init__(self, sentry: SentryService, sql: SQLDatabase):
raise_on_giveup=False,
giveup=giveup_hdlr,
on_backoff=backoff_hdlr)
def log_convo_to_nomic(self, course_name: str, conversation) -> str | None:
def log_convo_to_nomic(self, course_name: str, conversation) -> Union[str, None]:
# nomic.login(os.getenv('NOMIC_API_KEY')) # login during start of flask app
NOMIC_MAP_NAME_PREFIX = 'Conversation Map for '
"""
Expand Down

0 comments on commit d159598

Please sign in to comment.