diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2021-08-08 12:42:44 -0700 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2021-08-12 07:41:30 -0700 |
commit | 030b8b4ef630ab4e2957e3b2b6f5f09f619ca779 (patch) | |
tree | f880952af8a7b638b0f9c861b95619320f5ae4df /tools | |
parent | 346bba7a0fca0cd1c39f6b371ea8d0eb8686fd20 (diff) | |
download | pip-030b8b4ef630ab4e2957e3b2b6f5f09f619ca779.tar.gz |
Upgrade nox to remove mypy ignores
Diffstat (limited to 'tools')
-rw-r--r-- | tools/release/__init__.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/release/__init__.py b/tools/release/__init__.py index 06a9767d5..65fa02676 100644 --- a/tools/release/__init__.py +++ b/tools/release/__init__.py @@ -26,8 +26,7 @@ def get_version_from_arguments(session: Session) -> Optional[str]: # We delegate to a script here, so that it can depend on packaging. session.install("packaging") cmd = [ - # https://github.com/theacodes/nox/pull/378 - os.path.join(session.bin, "python"), # type: ignore + os.path.join(session.bin, "python"), "tools/release/check_version.py", version, ] @@ -156,12 +155,11 @@ def workdir( """Temporarily chdir when entering CM and chdir back on exit.""" orig_dir = pathlib.Path.cwd() - # https://github.com/theacodes/nox/pull/376 - nox_session.chdir(dir_path) # type: ignore + nox_session.chdir(dir_path) try: yield dir_path finally: - nox_session.chdir(orig_dir) # type: ignore + nox_session.chdir(orig_dir) @contextlib.contextmanager |