fix: minor fixes to get pycharm not to complain too much (#972)

This commit is contained in:
Matthieu Darbois
2021-12-27 09:26:33 +01:00
committed by GitHub
parent 4ed927c4a2
commit 21df1e576d
5 changed files with 16 additions and 16 deletions
+3 -3
View File
@@ -402,10 +402,10 @@ def build(options: Options) -> None:
config_setting = " ".join(verbosity_flags)
build_env = env.copy()
if build_options.dependency_constraints:
constr = build_options.dependency_constraints.get_for_python_version(
constraint_path = build_options.dependency_constraints.get_for_python_version(
config.version
)
build_env["PIP_CONSTRAINT"] = constr.as_uri()
build_env["PIP_CONSTRAINT"] = constraint_path.as_uri()
build_env["VIRTUALENV_PIP"] = get_pip_version(env)
call(
[
@@ -457,7 +457,7 @@ def build(options: Options) -> None:
if build_options.test_command and build_options.test_selector(config.identifier):
machine_arch = platform.machine()
testing_archs: List[Literal["x86_64", "arm64"]] = []
testing_archs: List[Literal["x86_64", "arm64"]]
if config_is_arm64:
testing_archs = ["arm64"]