SIENTIAPDE-1243: Add type ignores and fix datetime index formatting in gates and model repository.
This commit is contained in:
@@ -58,7 +58,7 @@ class MLFlowRepository:
|
||||
raise ValueError(f'{message}') from e
|
||||
|
||||
elif index_type == datetime or index_type == pd.Timestamp:
|
||||
data.index = data.index.strftime(DATETIME_FORMAT_WITH_TZ)
|
||||
data.index = data.index.strftime(DATETIME_FORMAT_WITH_TZ) # type: ignore[attr-defined]
|
||||
else:
|
||||
raise ValueError(f'{message}')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user