Skip to content

Commit

Permalink
Fixed legacy function argument check
Browse files Browse the repository at this point in the history
Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
  • Loading branch information
Jerry-Jinfeng-Guo committed Mar 4, 2024
1 parent a7328e6 commit 5a6f5ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/power_grid_model_io/data_stores/excel_file_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,12 @@ class ExcelFileStore(BaseDataStore[TabularData]):
def __init__(
self,
file_path: Optional[Path] = None,
*,
language: str = "en",
terms_changed: Optional[dict] = None,
**extra_paths: Path,
):
super().__init__()
if not isinstance(language, str):
raise TypeError("Expects 1 to 2 positional arguments, at least 3 were given")
# Create a dictionary of all supplied file paths:
# {"": file_path, extra_name[0]: extra_path[0], extra_name[1]: extra_path[1], ...}
self._file_paths: Dict[str, Path] = {}
Expand Down

0 comments on commit 5a6f5ed

Please sign in to comment.