SIENTIAPDE-1712
SIENTIAPDE-1712 Update type hints in PredictionProcess to improve clarity and enforce data structure consistency. Changed `data` parameter to a dictionary type and updated the way `last_timestamp` is accessed.
This commit is contained in:
@@ -110,13 +110,13 @@ class PredictionProcess:
|
|||||||
self,
|
self,
|
||||||
input_data: dict[str, Any],
|
input_data: dict[str, Any],
|
||||||
metadata: dict[str, Any],
|
metadata: dict[str, Any],
|
||||||
data: Any,
|
data: dict[str, Any],
|
||||||
model_id: Any,
|
model_id: str,
|
||||||
model_name: str,
|
model_name: str,
|
||||||
model_config: dict[str, Any],
|
model_config: dict[str, Any],
|
||||||
save_transform: bool,
|
save_transform: bool,
|
||||||
) -> None:
|
) -> None:
|
||||||
last_timestamp = data.last_timestamp
|
last_timestamp = data['last_timestamp']
|
||||||
|
|
||||||
# Apply input data quality gates
|
# Apply input data quality gates
|
||||||
gate_input = {
|
gate_input = {
|
||||||
|
|||||||
Reference in New Issue
Block a user