Skip to content
Snippets Groups Projects
Commit 8366f375 authored by Daniel CARRON's avatar Daniel CARRON :b: Committed by André Anjos
Browse files

[rawdataloader] Better typing for specialized RawDataLoaders

parent 4a2375d7
No related branches found
No related tags found
1 merge request!46Create common library
...@@ -9,7 +9,7 @@ class ClassificationRawDataLoader(RawDataLoader): ...@@ -9,7 +9,7 @@ class ClassificationRawDataLoader(RawDataLoader):
def __init__(self): def __init__(self):
super().__init__() super().__init__()
def sample(self, _: typing.Any) -> Sample: def sample(self, _: tuple[str, int, typing.Any | None]) -> Sample:
"""Load whole samples from media. """Load whole samples from media.
Parameters Parameters
......
import typing
from mednet.libs.common.data.typing import RawDataLoader, Sample from mednet.libs.common.data.typing import RawDataLoader, Sample
...@@ -9,7 +7,7 @@ class SegmentationRawDataLoader(RawDataLoader): ...@@ -9,7 +7,7 @@ class SegmentationRawDataLoader(RawDataLoader):
def __init__(self): def __init__(self):
super().__init__() super().__init__()
def sample(self, _: typing.Any) -> Sample: def sample(self, _: tuple[str, str, str | None]) -> Sample:
"""Load whole samples from media. """Load whole samples from media.
Parameters Parameters
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment