Skip to content

🧪 PythonMacro

The specification of the corresponding Python code. By default, the function is called as specified in the stubs.

The specification can contain template expressions, which are replaced by the corresponding arguments of the function call. $this is replaced by the receiver of the call. $param is replaced by the value of the parameter called param. Otherwise, the string is used as-is.


Name Type Description Default
template String - -


  • Function
Stub code in codeGeneration.sdsstub
annotation PythonMacro(
    template: String