import warnings

from ocyan.main.encoding import OcyanJSONEncoder


class OscarOptionJSONEncoder(OcyanJSONEncoder):
    def __init__(self, *args, **kwargs):
        warnings.warn(
            "OscarOptionJSONEncoder is deprecated, you should use ocyan.main.encoding.OcyanJSONEncoder instead",
            DeprecationWarning,
            stacklevel=2,
        )
        super().__init__(*args, **kwargs)
