from datetime import datetime
ISO_FORMAT = '%Y-%m-%d'


class DateParser:

    def __init__(self, dateformat):
        self.dateformat = dateformat

    def __call__(self, date: str):
        return self.parse(date)

    def parse(self, date: str):
        return datetime.strptime(date, self.dateformat)

0f709a5a83a31b1470403716466bc78a928f0bc2
<mask token>


class DateParser:
    <mask token>

    def __call__(self, date: str):
        return self.parse(date)

    def parse(self, date: str):
        return datetime.strptime(date, self.dateformat)

<mask token>


class DateParser:

    def __init__(self, dateformat):
        self.dateformat = dateformat

    def __call__(self, date: str):
        return self.parse(date)

    def parse(self, date: str):
        return datetime.strptime(date, self.dateformat)

<mask token>
ISO_FORMAT = '%Y-%m-%d'


class DateParser:

    def __init__(self, dateformat):
        self.dateformat = dateformat

    def __call__(self, date: str):
        return self.parse(date)

    def parse(self, date: str):
        return datetime.strptime(date, self.dateformat)

from datetime import datetime
ISO_FORMAT = '%Y-%m-%d'


class DateParser:

    def __init__(self, dateformat):
        self.dateformat = dateformat

    def __call__(self, date: str):
        return self.parse(date)

    def parse(self, date: str):
        return datetime.strptime(date, self.dateformat)
