Skip to content

Commit

Permalink
Fixing Mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JanhSander committed Jan 29, 2024
1 parent d2ee2b9 commit eaa9da3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/datadoc/backend/dapla_dataset_path_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

if TYPE_CHECKING:
import datetime
import os


@dataclass
Expand Down Expand Up @@ -254,8 +255,7 @@ def convert_ssb_period(
class DaplaDatasetPathInfo:
"""Extract info from a path following SSB's dataset naming convention."""

# def __init__(self, dataset_path: str | os.PathLike[str]) -> None:
def __init__(self, dataset_path: str) -> None:
def __init__(self, dataset_path: str | os.PathLike[str]) -> None:
"""Digest the path so that it's ready for further parsing."""
self.dataset_path = pathlib.Path(dataset_path)
self.dataset_name_sections = self.dataset_path.stem.split("_")
Expand Down

0 comments on commit eaa9da3

Please sign in to comment.