Skip to content

Commit 101e921

Browse files
committed
Add type hints
1 parent 1ee177c commit 101e921

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

size.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
('tgz', 'tar.bz2', 'tar.xz', 'pdb.zip', 'amd64.msi', 'msi', 'chm', 'dmg')))
1515

1616

17-
def ignore(filename):
17+
def ignore(filename: str) -> bool:
1818
return not any(filename.endswith(DOT + ext) for ext in sort_order)
1919

2020

21-
def key(filename):
21+
def key(filename: str) -> int:
2222
parts = filename.split(DOT)
2323
# Try 2 parts first.
2424
ext = DOT.join(parts[-2:])

0 commit comments

Comments
 (0)