diff --git a/esmerald/encoders.py b/esmerald/encoders.py index ca628434..9c98cfdc 100644 --- a/esmerald/encoders.py +++ b/esmerald/encoders.py @@ -32,6 +32,10 @@ def is_type(self, value: Any) -> bool: """ raise NotImplementedError("All Esmerald encoders must implement is_type() method.") + def is_type_structure(self, value: Any) -> bool: + """Prevent lilya picking it up for apply_structure.""" + return False + def serialize(self, obj: Any) -> Any: """ Function that transforms a data structure into a serializable