def bind_to_cls(self, cls: Any) -> Decorator[DecoratorInfoType]:
        """Bind the decorator to a class.

        Args:
            cls: the class.

        Returns:
            The new decorator instance.
        """
        return self.build(
            cls,
            cls_var_name=self.cls_var_name,
            shim=self.shim,
            info=self.info,
        )
Bind the decorator to a class.

        Args:
            cls: the class.

        Returns:
            The new decorator instance.
        
pydantic/_internal/_decorators.py