From d6a0ba5f8a8d34198ecd381faf9093ab77c3cb5e Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 7 Feb 2021 17:06:30 -0800 Subject: [PATCH] Define the location attribute on base class ProcessEnv (#377) Fixes errors when running mypy on a project's noxfile.py: noxfile.py:42: error: "ProcessEnv" has no attribute "location" Discovered while adding types pip's noxfile.py: pypa/pip#9411 --- nox/virtualenv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nox/virtualenv.py b/nox/virtualenv.py index eba573e7..0e3bbca3 100644 --- a/nox/virtualenv.py +++ b/nox/virtualenv.py @@ -43,6 +43,8 @@ def __init__(self, interpreter: str) -> None: class ProcessEnv: """A environment with a 'bin' directory and a set of 'env' vars.""" + location: str + # Does this environment provide any process isolation? is_sandboxed = False