chore: update typing to collections.abc

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
Henry Schreiner
2023-04-18 12:38:21 -04:00
parent ec9919a088
commit 6d038dfbdf
13 changed files with 44 additions and 36 deletions
+4 -2
View File
@@ -8,10 +8,12 @@ import shlex
import shutil
import subprocess
import sys
import typing
import uuid
from collections.abc import Sequence
from pathlib import Path, PurePath, PurePosixPath
from types import TracebackType
from typing import IO, Dict, Sequence, cast
from typing import IO, Dict
from cibuildwheel.util import CIProvider, detect_ci_provider
@@ -329,7 +331,7 @@ class OCIContainer:
capture_output=True,
)
)
return cast(Dict[str, str], env)
return typing.cast(Dict[str, str], env)
def environment_executor(self, command: list[str], environment: dict[str, str]) -> str:
# used as an EnvironmentExecutor to evaluate commands and capture output