From 2a65d71e622790d2d6b6c51d280ebf47734ce5b7 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Fri, 1 Jan 2021 13:43:48 -0800 Subject: [PATCH] Define the location attribute on base class ProcessEnv 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 c32efaf2..5b1bd744 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