Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Dec 13, 2024
1 parent 9f0f2ad commit 056e518
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/ota_metadata/legacy/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,7 @@ def iter_persist_entries(self) -> Generator[str]:
for line in f:
yield line.strip()[1:-1]

def iter_dir_entries(
self, *, batch_size: int = 256
) -> Generator[FileTableDirectories]:
def iter_dir_entries(self, *, batch_size: int) -> Generator[FileTableDirectories]:
_conn = self.connect_fstable()
_ft_dir_orm = FTDirORM(_conn)
try:
Expand All @@ -280,7 +278,7 @@ def iter_dir_entries(
_conn.close()

def iter_non_regular_entries(
self, *, batch_size: int = 256
self, *, batch_size: int
) -> Generator[FileTableNonRegularFiles]:
_conn = self.connect_fstable()
_ft_dir_orm = FTNonRegularORM(_conn)
Expand All @@ -290,7 +288,7 @@ def iter_non_regular_entries(
_conn.close()

def iter_regular_entries(
self, *, batch_size: int = 256
self, *, batch_size: int
) -> Generator[FileTableRegularFiles]:
_conn = self.connect_fstable()
_ft_dir_orm = FTRegularORM(_conn)
Expand Down

0 comments on commit 056e518

Please sign in to comment.