We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62e12eb commit 011a1ccCopy full SHA for 011a1cc
src/ape/api/convert.py
@@ -73,5 +73,6 @@ def is_convertible(self, to_type: type) -> bool:
73
@abstractmethod
74
def convert_to(self, to_type: type) -> Any:
75
"""
76
- Convert ``self`` to the given type. Raises ``ConversionError`` if not convertible.
+ Convert ``self`` to the given type. Implementing classes _should_ raises ``ConversionError`` if not convertible.
77
+ Ape's conversion system will **only** attempt to convert classes where ``.is_convertible()`` returns ``True``.
78
0 commit comments