def METHOD_NAME(self, proposal):
    if proposal.value is not None:
        import warnings
        warnings.warn("Layout properties overflow_x and overflow_y have been deprecated and will be dropped in a future release. Please use the overflow shorthand property instead", DeprecationWarning)
    return proposal.value