Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 committed Dec 15, 2023
1 parent 9598921 commit 29ff736
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tastymap/ai.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
from typing import Any

try:
from marvin import ai_fn, ai_model
from pydantic import BaseModel, Field
from marvin import ai_fn, ai_model # type: ignore
from pydantic import BaseModel, Field # type: ignore
except ImportError:
raise ImportError(
"Please install marvin and pydantic to use this module, "
"e.g. pip install marvin pydantic"
)

from .core import cook_tmap
from .models import ColorModel, TastyMap
from .models import TastyMap


@ai_model
Expand All @@ -27,7 +25,7 @@ class AIPalette(BaseModel):


@ai_fn
def _refine_description(description: str, num_colors: int) -> str:
def _refine_description(description: str, num_colors: int) -> str: # pragma: no cover
"""
You are a master painter, and well versed in matplotlib colors.
Describe in detail what you imagine when you think of
Expand Down

0 comments on commit 29ff736

Please sign in to comment.