Fix up security for galaxy.tool_util.verify.asserts

This commit is contained in:
John Chilton
2022-12-12 14:18:36 -05:00
parent 2f46f05d48
commit 350899bdca
2 changed files with 3 additions and 3 deletions
@@ -17,7 +17,9 @@ def _extract_from_tar(bytes, fn):
# so make this consistent for tar
if ti.isdir():
return ""
with tar_temp.extractfile(fn) as member_fh:
tar_file = tar_temp.extractfile(fn)
assert tar_file is not None
with tar_file as member_fh:
return member_fh.read()
-2
View File
@@ -109,8 +109,6 @@ check_untyped_defs = False
check_untyped_defs = False
[mypy-galaxy.tools.bundled.filters.random_lines_two_pass]
check_untyped_defs = False
[mypy-galaxy.tool_util.verify.asserts.archive]
check_untyped_defs = False
[mypy-galaxy.tool_util.deps.brew_exts]
check_untyped_defs = False
[mypy-galaxy.model.item_attrs]