mypy: Remove a bunch of now-unnecessary type: ignore annotations.

Since mypy and typeshed have advanced a lot over the last several
months, we no longer need these `type: ignore` annotations.
This commit is contained in:
Tim Abbott
2016-10-16 23:22:00 -07:00
parent 3b0b65c2d0
commit 4a4664d268
13 changed files with 17 additions and 17 deletions

View File

@@ -217,7 +217,7 @@ def setup_virtualenv(target_venv_path, requirements_file, virtualenv_args=None,
if patch_activate_script:
do_patch_activate_script(target_venv_path)
activate_this = os.path.join(cached_venv_path, "bin", "activate_this.py")
exec(open(activate_this).read(), {}, dict(__file__=activate_this)) # type: ignore # https://github.com/python/mypy/issues/1577
exec(open(activate_this).read(), {}, dict(__file__=activate_this))
return cached_venv_path
def do_setup_virtualenv(venv_path, requirements_file, virtualenv_args):
@@ -238,7 +238,7 @@ def do_setup_virtualenv(venv_path, requirements_file, virtualenv_args):
create_requirements_index_file(venv_path, requirements_file)
# Switch current Python context to the virtualenv.
activate_this = os.path.join(venv_path, "bin", "activate_this.py")
exec(open(activate_this).read(), {}, dict(__file__=activate_this)) # type: ignore # https://github.com/python/mypy/issues/1577
exec(open(activate_this).read(), {}, dict(__file__=activate_this))
run(["pip", "install", "-U", "setuptools"])
run(["pip", "install", "--upgrade", "pip", "wheel"])