From e6670829df42def2ce36c0b9631b4db268cb91b4 Mon Sep 17 00:00:00 2001 From: Pratyush Shukla Date: Sat, 15 Jul 2023 04:07:24 +0530 Subject: [PATCH] Fixed import for `datetime.strptime` --- .../providers/fmp/openbb_fmp/historical_employees.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openbb_sdk/providers/fmp/openbb_fmp/historical_employees.py b/openbb_sdk/providers/fmp/openbb_fmp/historical_employees.py index 42e16deb9ab..2230226204d 100644 --- a/openbb_sdk/providers/fmp/openbb_fmp/historical_employees.py +++ b/openbb_sdk/providers/fmp/openbb_fmp/historical_employees.py @@ -1,7 +1,7 @@ """FMP Historical Employees fetcher.""" # IMPORT STANDARD -from datetime import date, datetime, strptime +from datetime import date, datetime from typing import Dict, List, Optional # IMPORT INTERNAL @@ -45,15 +45,15 @@ class FMPHistoricalEmployeesData(HistoricalEmployeesData): @validator("acceptanceTime", pre=True) def acceptance_time_validate(cls, v): # pylint: disable=E0213 - return strptime(v, "%Y-%m-%d %H:%M:%S") + return datetime.strptime(v, "%Y-%m-%d %H:%M:%S") @validator("periodOfReport", pre=True) def period_of_report_validate(cls, v): # pylint: disable=E0213 - return strptime(v, "%Y-%m-%d") + return datetime.strptime(v, "%Y-%m-%d") @validator("filingDate", pre=True) def filing_date_validate(cls, v): # pylint: disable=E0213 - return strptime(v, "%Y-%m-%d") + return datetime.strptime(v, "%Y-%m-%d") class FMPHistoricalEmployeesFetcher(