Package org.openrewrite.python.marker
Class MagicMethodDesugar
java.lang.Object
org.openrewrite.python.marker.MagicMethodDesugar
- All Implemented Interfaces:
org.openrewrite.marker.Marker
In Python, many operators are actually syntax sugar for method calls.
For example,
a == bis syntax sugar for
a.__eq__(b). This marker is for binary operators that were de-sugared to call expressions to fit into the Java language model.
-
Constructor Details
-
MagicMethodDesugar
public MagicMethodDesugar()
-