diff --git a/pytools/graph.py b/pytools/graph.py
index 054c54449fe7fc330a78100d64bc6c33402c7f12..1a02484151b2d40abfb22037edb339d24777096d 100644
--- a/pytools/graph.py
+++ b/pytools/graph.py
@@ -465,7 +465,7 @@ def as_graphviz_dot(graph: GraphT[NodeT],
          for (node, targets) in graph.items()
          for t in targets])
 
-    return f"digraph mygraph {{\n{ content }\n}}\n"
+    return f"digraph mygraph {{\n{content}\n}}\n"
 
 # }}}
 
diff --git a/pytools/mpiwrap.py b/pytools/mpiwrap.py
index e0492e00bfb1abd06c66a32c0f6052d67475b97f..862556db6c1f1ad072f6aa8c4b6cc596a1b3a33c 100644
--- a/pytools/mpiwrap.py
+++ b/pytools/mpiwrap.py
@@ -13,7 +13,8 @@ import pytools.prefork  # pylint:disable=wrong-import-position
 pytools.prefork.enable_prefork()
 
 
-if Is_initialized():  # noqa pylint:disable=undefined-variable
+# pylint: disable-next=undefined-variable
+if Is_initialized():    # type: ignore[name-defined,unused-ignore] # noqa
     raise RuntimeError("MPI already initialized before MPI wrapper import")