mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
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:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user