Skip to content

Commit

Permalink
fix: compat for python <3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Calychas committed Oct 15, 2024
1 parent f46ced6 commit 65f8ae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kedro_mlflow/pipeline/pipeline_ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ def input_name(self, name: str) -> None:
self._input_name = name

@property
def params_input_name(self) -> str | None:
def params_input_name(self) -> Optional[str]:
return self._params_input_name

@params_input_name.setter
def params_input_name(self, name: str | None) -> None:
def params_input_name(self, name: Optional[str]) -> None:
if name is not None:
allowed_names = self.inference.inputs()
pp_allowed_names = "\n - ".join(allowed_names)
Expand Down

0 comments on commit 65f8ae1

Please sign in to comment.