Skip to content

Commit

Permalink
Fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Aug 25, 2024
1 parent 3dcd097 commit 71d93c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .utils/repack.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
RESOURCE_ENTRY_NAME_MAX_LENGTH = 100


def _tar_filter(tarinfo: tarfile.TarInfo):
def _tar_filter(tarinfo: tarfile.TarInfo) -> tarfile.TarInfo:
if len(tarinfo.name) > RESOURCE_ENTRY_NAME_MAX_LENGTH:
raise ValueError("Resource name too long")
return tarball.tar_sanitizer_filter(tarinfo)
Expand Down

0 comments on commit 71d93c1

Please sign in to comment.