Skip to content

Parameter validation

Combadge supports @pydantic.validate_call via the @wrap_with marker:

from combadge.core.markers.method import wrap_with


class SupportsWttrIn(Protocol):
    @wrap_with(validate_call)
    def get_weather(self, ...) -> ...:
        ...