Closed Matthias1590 closed 3 years ago
datetime.datetime inherits datetime.date, therefore isinstance(data, datetime.date) and isinstance(data, (datetime.date, datetime.datetime)) are the same.
isinstance(data, datetime.date)
isinstance(data, (datetime.date, datetime.datetime))
datetime.datetime inherits datetime.date, therefore
isinstance(data, datetime.date)
andisinstance(data, (datetime.date, datetime.datetime))
are the same.