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 55169bb commit 66a22bbCopy full SHA for 66a22bb
rope/refactor/patchedast.py
@@ -785,6 +785,10 @@ def _Match(self, node):
785
children.extend(node.cases)
786
self._handle(node, children)
787
788
+ def _MatchOr(self, node):
789
+ children = [*self._child_nodes(node.patterns, "|")]
790
+ self._handle(node, children)
791
+
792
def _match_case(self, node):
793
children = ["case", node.pattern]
794
if node.guard:
@@ -793,6 +797,13 @@ def _match_case(self, node):
797
children.extend(node.body)
798
795
799
800
+ def _MatchSequence(self, node):
801
+ children = ["[", *self._child_nodes(node.patterns, ","), "]"]
802
803
804
+ def _MatchStar(self, node):
805
+ self._handle(node, ["*_"])
806
796
807
def _MatchAs(self, node):
808
if node.pattern:
809
children = [node.pattern, "as", node.name]
0 commit comments