Skip to content

Commit

Permalink
make _dotted condition stricter
Browse files Browse the repository at this point in the history
  • Loading branch information
yiranlus committed Oct 24, 2024
1 parent c29fc47 commit 9325793
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hyrule/argmove.hy
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ also known as arrow macros."
(defn _dotted [node]
"Helper function to turn '.name forms into '(.name) forms"
(if (and (isinstance node hy.models.Expression)
(= (get node 0) '.))
(= (get node 0) '.)
(is (get node 1) None))
`(~node)
node)))

Expand Down

0 comments on commit 9325793

Please sign in to comment.