Skip to content

Commit

Permalink
chore: fix mypy cant read comment ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
kkiani committed Oct 4, 2024
1 parent b66f790 commit 448d68a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/damavand/cloud/aws/controllers/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ def chat_completions_url(self) -> str:
@property
@runtime
@cache
def client(self) -> "openai.OpenAI": # noqa # type: ignore
def client(self) -> "openai.OpenAI": # type: ignore # noqa
"""Return an OpenAI client."""

try:
import openai # noqa # type: ignore
import openai # type: ignore # noqa
except ImportError:
raise RuntimeException(
"Failed to import OpenAI library. Damavand provide this library as an optional dependency. Try to install it using `pip install damavand[openai]` or directly install it using pip or your dependency manager."
Expand Down

0 comments on commit 448d68a

Please sign in to comment.