def METHOD_NAME(self, value: T) -> None:
    if isinstance(value, self.type):
        self.property.set(self.object, value)
    else:
        raise TypeError(f"Object is not of type {self.type.__name__}")