Skip to content

Commit dd5579a

Browse files
authored
use set instead of list
1 parent 30ca4dd commit dd5579a

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 compression[1:] 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)