Verify the existence of datetime and date in ancestors instead of object
Verify the existence of datetime and date in ancestors instead of object

`object` cannot be inferred as an ancestor of datetime.date on PyPy, due to
a base class that is not inferrable.

PyCQA/astroid