Skip to content

Commit

Permalink
Define the location attribute on base class ProcessEnv (#377)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jdufresne committed Feb 8, 2021
1 parent 1025682 commit d6a0ba5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nox/virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d6a0ba5

Please sign in to comment.