From 6113136a1d4e2f23ae320888fbabb8ecef444c5b Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Tue, 7 Apr 2020 00:45:44 +0200 Subject: [PATCH] fix types annotation with optional --- cibuildwheel/util.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cibuildwheel/util.py b/cibuildwheel/util.py index 18d5bd65..0bbd6846 100644 --- a/cibuildwheel/util.py +++ b/cibuildwheel/util.py @@ -110,10 +110,10 @@ class DependencyConstraints(object): BuildOptions = NamedTuple("BuildOptions", [ ("project_dir", str), ("output_dir", str), - ("test_command", str), + ("test_command", Optional[str]), ("test_requires", List[str]), ("test_extras", str), - ("before_build", str), + ("before_build", Optional[str]), ("build_verbosity", int), ("build_selector", BuildSelector), ("repair_command", str), @@ -128,10 +128,10 @@ when drop support of python 3.5 execution. class BuildOptions(NamedTuple): project_dir: str output_dir: str - test_command: str + test_command: Optional[str] test_requires: List[str] test_extras: str - before_build: str + before_build: Optional[str] build_verbosity: int build_selector: BuildSelector repair_command: str