Black files

This commit is contained in:
rocky
2024-02-04 12:29:30 -05:00
parent bdc751f444
commit ef92f08f56
12 changed files with 137 additions and 127 deletions

View File

@@ -773,7 +773,8 @@ class SourceWalker(GenericASTTraversal, NonterminalActions, ComprehensionMixin):
"""
Expanding '%s' in template '%s[%s]':
%s is invalid; has only %d entries
""" % (node.kind, entry, arg, index, len(node))
"""
% (node.kind, entry, arg, index, len(node))
)
self.preorder(node[index])
@@ -1343,10 +1344,10 @@ def code_deparse(
if expected_start:
assert (
deparsed.ast == expected_start
), (
"Should have parsed grammar start to '%s'; got: %s" %
(expected_start, deparsed.ast.kind)
)
), "Should have parsed grammar start to '%s'; got: %s" % (
expected_start,
deparsed.ast.kind,
)
# save memory
del tokens