Skip to content

Commit

Permalink
Update type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
BirkhoffG committed Apr 4, 2024
1 parent 72fc25c commit 1cb16be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nbs/01_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@
" \n",
" def set_transformations(\n",
" self, \n",
" feature_names_to_transformation: Dict[str, Union[str, Dict, Transformation]], # Dict[feature_name, Transformation]\n",
" feature_names_to_transformation: Dict[str, Union[str, Dict, BaseTransformation]], # Dict[feature_name, Transformation]\n",
" ) -> DataModule:\n",
" \"\"\"Reset transformations for features.\"\"\"\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion relax/data_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def __getitem__(self, name: str):

def set_transformations(
self,
feature_names_to_transformation: Dict[str, Union[str, Dict, Transformation]], # Dict[feature_name, Transformation]
feature_names_to_transformation: Dict[str, Union[str, Dict, BaseTransformation]], # Dict[feature_name, Transformation]
) -> DataModule:
"""Reset transformations for features."""

Expand Down

0 comments on commit 1cb16be

Please sign in to comment.