def __new__(cls, year, month=None, day=None):
        if isinstance(year, str):
            # Pickle support
            self = object.__new__(cls)
            self.__setstate(year)
            return self
        _check_date_fields(year, month, day)
        self = object.__new__(cls)
        self.__year = year
        self.__month = month
        self.__day = day
        return self

    # Additional constructors
Constructor.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/datetime.py/date.__new__