From eefa9e2ea6bccad66ab580f051f05c2bef1b7f18 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 17 Nov 2015 00:02:15 +0300 Subject: [PATCH] transforms.inferencer: fix typo. --- artiq/compiler/transforms/inferencer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/transforms/inferencer.py b/artiq/compiler/transforms/inferencer.py index 8ca560285..f823014f8 100644 --- a/artiq/compiler/transforms/inferencer.py +++ b/artiq/compiler/transforms/inferencer.py @@ -935,7 +935,7 @@ class Inferencer(algorithm.Visitor): self.generic_visit(node) typ = node.context_expr.type - if not types.is_builtin(typ, "parallel") or types.is_builtin(typ, "sequential"): + if not (types.is_builtin(typ, "parallel") or types.is_builtin(typ, "sequential")): diag = diagnostic.Diagnostic("error", "value of type {type} cannot act as a context manager", {"type": types.TypePrinter().name(typ)},