kaparoo-python 0.1.8__tar.gz → 0.1.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kaparoo-python
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Personally common and useful Python features
5
5
  Project-URL: GitHub, https://www.github.com/kaparoo/kaparoo-python
6
6
  Author-email: Jaewoo Park <kaparoo2001@gmail.com>
@@ -0,0 +1 @@
1
+ __version__ = "0.1.9"
@@ -49,14 +49,16 @@ class DataSequence(Sequence[T_co]):
49
49
  class DataFilesFolder(DataSequence[T_co]):
50
50
  def __init__(self: Self, path: StrPath, *args: Any, **kwargs: Any) -> None:
51
51
  self.path = ensure_dir_exists(path)
52
- self.files = self.list_files(*args, **kwargs)
52
+ self.files = self.list_files(self.path, *args, **kwargs)
53
53
 
54
54
  def __len__(self: Self) -> int:
55
55
  return len(self.files)
56
56
 
57
57
  @classmethod
58
58
  @abstractmethod
59
- def list_files(cls: type[Self], *args: Any, **kwargs: Any) -> StrPaths:
59
+ def list_files(
60
+ cls: type[Self], path: StrPath, *args: Any, **kwargs: Any
61
+ ) -> StrPaths:
60
62
  raise NotImplementedError
61
63
 
62
64
 
@@ -1 +0,0 @@
1
- __version__ = "0.1.8"
File without changes
File without changes