MCPcopy Index your code
hub / github.com/ipython/ipython / __call__

Method __call__

IPython/core/magic_arguments.py:235–244  ·  view source on GitHub ↗
(self, func)

Source from the content-addressed store, hash-verified

233 self.name = name
234
235 def __call__(self, func):
236 if not getattr(func, 'has_arguments', False):
237 func.has_arguments = True
238 func.decorators = []
239 if self.name is not None:
240 func.argcmd_name = self.name
241 # This should be the first decorator in the list of decorators, thus the
242 # last to execute. Build the parser.
243 func.parser = construct_parser(func)
244 return func
245
246
247class ArgMethodWrapper(ArgDecorator):

Callers

nothing calls this directly

Calls 1

construct_parserFunction · 0.85

Tested by

no test coverage detected