diff --git a/tools/precompiler/precompiler.py b/tools/precompiler/precompiler.py index d1b17132e7..ae7339abfe 100644 --- a/tools/precompiler/precompiler.py +++ b/tools/precompiler/precompiler.py @@ -48,7 +48,7 @@ def _compile(options: "argparse.Namespace") -> None: f"Unknown PycInvalidationMode: {options.invalidation_mode}" ) from e - if len(options.srcs) != len(options.src_names) != len(options.pycs): + if not (len(options.srcs) == len(options.src_names) == len(options.pycs)): raise AssertionError( "Mismatched number of --src, --src_name, and/or --pyc args" )