Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/borg/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,16 +754,16 @@ def extract_helper(self, item, path, hlm, *, dry_run=False):

def extract_item(
self,
item,
item: Item,
*,
restore_attrs=True,
dry_run=False,
stdout=False,
sparse=False,
hlm=None,
pi=None,
hlm: HardLinkManager | None = None,
pi: ProgressIndicatorPercent | None = None,
continue_extraction=False,
):
) -> None:
"""
Extract archive item.

Expand All @@ -777,7 +777,7 @@ def extract_item(
:param continue_extraction: continue a previously interrupted extraction of the same archive
"""

def same_item(item, st):
def same_item(item: Item, st: os.stat_result) -> bool:
"""Is the archived item the same as the filesystem item at the same path with stat st?"""
if not stat.S_ISREG(st.st_mode):
# we only "optimize" for regular files.
Expand Down
Loading