diff --git a/pytools/datatable.py b/pytools/datatable.py
index 41c56909cf972ee20291080b5b719aa8586850f6..4fcb03e64c47b8f757647e2a08a52e2e00b2dc08 100644
--- a/pytools/datatable.py
+++ b/pytools/datatable.py
@@ -244,7 +244,7 @@ class DataTable:
                 if outer:
                     this_batch = [(None,) * len(self.column_names)]
 
-            if run_other and not other_over:
+            if run_other and not other_over:  # pylint: disable=used-before-assignment  # noqa: E501
                 key = other_key
                 while other_row[other_key_idx] == other_key:
                     other_batch.append(other_row)