MCPcopy Create free account
hub / github.com/microsoft/SandDance / command_for_func

Function command_for_func

python/jupyter-widget/setupbase.py:198–207  ·  view source on GitHub ↗

Create a command that calls the given function.

(func)

Source from the content-addressed store, hash-verified

196
197
198def command_for_func(func):
199 """Create a command that calls the given function."""
200
201 class FuncCommand(BaseCommand):
202
203 def run(self):
204 func()
205 update_package_data(self.distribution)
206
207 return FuncCommand
208
209
210def run(cmd, **kwargs):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected