mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix up security for galaxy.tool_util.verify.asserts
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user