diff options
-rw-r--r-- | openbb_platform/providers/fmp/openbb_fmp/models/economic_calendar.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbb_platform/providers/fmp/openbb_fmp/models/economic_calendar.py b/openbb_platform/providers/fmp/openbb_fmp/models/economic_calendar.py index f118024876b..135aaa04314 100644 --- a/openbb_platform/providers/fmp/openbb_fmp/models/economic_calendar.py +++ b/openbb_platform/providers/fmp/openbb_fmp/models/economic_calendar.py @@ -55,7 +55,8 @@ class FMPEconomicCalendarData(EconomicCalendarData): @field_validator( "date", "last_updated", "created_at", mode="before", check_fields=False ) - def date_validate(cls, v: str): # pylint: disable=E0213 + @classmethod + def date_validate(cls, v: str): """Return the date as a datetime object.""" return datetime.strptime(v, "%Y-%m-%d %H:%M:%S") if v else None |