is_date()
Check if obj is a date object.
Implementation
Args: obj: The object to check Returns: True if obj is a date, False otherwise
Example
is_date(date.today())
Expected output: True
Source Code
def is_date(obj: Any) -> bool:
from datetime import date
return isinstance(obj, date)