Skip to content

Commit

Permalink
Remove unnecessary dependencies import
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 committed Feb 18, 2024
1 parent f7b841a commit 079b1b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions tastymap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

from .core import cook_tmap, pair_tbar
from .models import TastyBar, TastyMap
from .ui import TastyKitchen

__version__ = "0.4.0"
try:
from .ui import TastyKitchen
except ImportError:
pass

__version__ = "0.4.1"

__all__ = ["cook_tmap", "pair_tbar", "TastyMap", "TastyBar", "TastyKitchen"]
2 changes: 1 addition & 1 deletion tastymap/ai.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
try:
from marvin import ai_fn, ai_model # type: ignore
from pydantic import BaseModel, Field # type: ignore
except ImportError:
except ImportError as exc:
raise ImportError(
"Please install marvin and pydantic to use this module, "
"e.g. pip install marvin pydantic"
Expand Down

0 comments on commit 079b1b7

Please sign in to comment.