We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca3b722 commit 94adbe4Copy full SHA for 94adbe4
1 file changed
toon/__init__.py
@@ -14,8 +14,10 @@
14
_PYDANTIC_AVAILABLE = True
15
except ImportError:
16
_PYDANTIC_AVAILABLE = False
17
- encode_pydantic = None
18
- decode_to_pydantic = None
+ def encode_pydantic(*args, **kwargs):
+ 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.")
21
22
__version__ = '1.0.0'
23
__all__ = [
0 commit comments