Skip to content
This repository was archived by the owner on Jan 13, 2026. It is now read-only.

Commit 46bb6b0

Browse files
committed
Expect J.VariableDeclarations for now
1 parent 3d7beb4 commit 46bb6b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rewrite-python-remote/src/main/java/org/openrewrite/python/remote/PythonValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public Py.MatchCase visitMatchCase(Py.MatchCase matchCase, P p) {
277277

278278
@Override
279279
public Py.MatchCase.Pattern visitMatchCasePattern(Py.MatchCase.Pattern pattern, P p) {
280-
visitAndValidate(pattern.getChildren(), Expression.class, p);
280+
visitAndValidate(pattern.getChildren(), J.VariableDeclarations.class, p);
281281
return pattern;
282282
}
283283

0 commit comments

Comments
 (0)