Skip to content

Commit

Permalink
added # type: ignore for embeddings.fireworks
Browse files Browse the repository at this point in the history
  • Loading branch information
somashekhar161 committed Sep 24, 2024
1 parent b8cb49a commit 2052ff4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion private_gpt/components/embedding/embedding_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def __init__(self, settings: Settings) -> None:
)
case "fireworks":
try:
from llama_index.embeddings.fireworks import FireworksEmbedding
from llama_index.embeddings.fireworks import ( # type: ignore
FireworksEmbedding,
)
except ImportError as e:
raise ImportError(
"FireworksEmbedding dependencies not found, install with `poetry install --extras embeddings-fireworks`"
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,6 @@ exclude = ["tests"]
[tool.mypy-llama-index]
ignore_missing_imports = true

[tool.mypy-llama_index.embeddings.fireworks]
ignore_missing_imports = true

[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
Expand Down

0 comments on commit 2052ff4

Please sign in to comment.