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 4cfeff7 commit e4f8571
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 e4f8571

Please sign in to comment.