Skip to content

Commit 94adbe4

Browse files
lurenssCopilot
andauthored
Update toon/__init__.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ca3b722 commit 94adbe4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

toon/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
_PYDANTIC_AVAILABLE = True
1515
except ImportError:
1616
_PYDANTIC_AVAILABLE = False
17-
encode_pydantic = None
18-
decode_to_pydantic = None
17+
def encode_pydantic(*args, **kwargs):
18+
raise ImportError("encode_pydantic requires pydantic to be installed. Please install pydantic to use this feature.")
19+
def decode_to_pydantic(*args, **kwargs):
20+
raise ImportError("decode_to_pydantic requires pydantic to be installed. Please install pydantic to use this feature.")
1921

2022
__version__ = '1.0.0'
2123
__all__ = [

0 commit comments

Comments
 (0)