MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / function_transformer

Function function_transformer

share/docs/prettymethods.py:80–90  ·  view source on GitHub ↗
(new_name)

Source from the content-addressed store, hash-verified

78
79
80def function_transformer(new_name):
81 def xf(name_node, parameters_node, details):
82 return (
83 patch_node(name_node, new_name, ()),
84 patch_node(parameters_node, "", [
85 SphinxNodes.desc_parameter("", "self"),
86 *get_children(parameters_node),
87 ])
88 )
89
90 return xf
91
92
93def unary_op_transformer(op):

Callers 1

prettymethods.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected