Skip to content

Commit

Permalink
type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed May 10, 2024
1 parent 81510a2 commit 8d3c1da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions datasets_old_2022_10/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ def __repr__(self):
parts.insert(0, f"class={ds['class']}")
return f"<{self.__class__.__name__} {' '.join(parts)}>"

def get_extern_data(self) -> Dict[str, Dict[str]]:
def get_extern_data(self) -> Dict[str, Dict[str, Any]]:
"""
Get extern data
"""
raise NotImplementedError

def get_train_dataset(self) -> Dict[str]:
def get_train_dataset(self) -> Dict[str, Any]:
"""
Get train dataset
"""
raise NotImplementedError

def get_eval_datasets(self) -> Dict[str, Dict[str]]:
def get_eval_datasets(self) -> Dict[str, Dict[str, Any]]:
"""
:return: e.g. {"dev": ..., "devtrain": ...}
This is intended for eval_datasets in the RETURNN config,
Expand Down Expand Up @@ -74,7 +74,7 @@ def get_default_target(self) -> Optional[str]:
"""
return "classes"

def get_config_opts(self) -> Dict[str]:
def get_config_opts(self) -> Dict[str, Any]:
"""
E.g. in your main config, you could do::
Expand Down

0 comments on commit 8d3c1da

Please sign in to comment.