Skip to content

Commit d7aa853

Browse files
authored
wrong variable asserted
1 parent dd5579a commit d7aa853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pymovements/utils/archives.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _extract_tar(
175175

176176
# make sure mode string is Literal['r', 'r:gz', 'r:bz2', 'r:xz']
177177
# or else mypy complains: https://github.com/python/typeshed/pull/12181
178-
assert compression[1:] in {'r', 'r:gz', 'r:bz2', 'r:xz'}
178+
assert mode in {'r', 'r:gz', 'r:bz2', 'r:xz'}
179179

180180
with tarfile.open(source_path, mode) as archive:
181181
for member in tqdm(archive.getmembers()):

0 commit comments

Comments
 (0)