Skip to content

Commit

Permalink
Python almost works - except non-local
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto committed Jan 31, 2025
1 parent 44e85e9 commit abfb690
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,14 @@ class PythonLanguage :
ref,
setAccessValue = false,
)
} else if (ref.astParent is InitializerListExpression) {
} else if (
ref.astParent is InitializerListExpression &&
ref.astParent?.astParent is AssignExpression
) {
handleAssignmentToTarget(
ref.astParent!!.astParent as AssignExpression,
ref,
setAccessValue = false,
setAccessValue = true,
)
} else if (ref.astParent is ForEachStatement) {
val handled = handleWriteToReference(ref)
Expand Down

0 comments on commit abfb690

Please sign in to comment.