We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a17af4f commit ca88843Copy full SHA for ca88843
1 file changed
src/python_minifier/expression_printer.py
@@ -481,6 +481,10 @@ def visit_Subscript(self, node):
481
self.visit_ExtSlice(node.slice)
482
elif isinstance(node.slice, ast.Ellipsis):
483
self.visit_Ellipsis(node)
484
+ elif sys.version_info >= (3, 9) and isinstance(node.slice, ast.Tuple):
485
+ self.visit_Tuple(node.slice)
486
+ elif sys.version_info >= (3, 9):
487
+ self._expression(node.slice)
488
else:
489
raise AssertionError('Unknown slice type %r' % node.slice)
490
@@ -788,4 +792,4 @@ def visit_Await(self, node):
788
792
assert isinstance(node, ast.Await)
789
793
self.token_break()
790
794
self.code += 'await'
791
- self._rhs(node.value, node)
795
+ self._rhs(node.value, node)
0 commit comments