MCPcopy Index your code
hub / github.com/plotly/plotly.py / add_wrapper

Function add_wrapper

codegen/figure.py:111–120  ·  view source on GitHub ↗
(wrapped_name, full_params, param_list)

Source from the content-addressed store, hash-verified

109 )
110
111 def add_wrapper(wrapped_name, full_params, param_list):
112 buffer.write(
113 f'''
114 def {wrapped_name}(self, {full_params}) -> "{fig_classname}":
115 """
116 {getattr(BaseFigure, wrapped_name).__doc__}
117 """
118 return super().{wrapped_name}({param_list})
119 '''
120 )
121
122 add_wrapper(
123 "update",

Callers 1

build_figure_pyFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected