MCPcopy Create free account
hub / github.com/ipython/ipython / __call__

Method __call__

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

Source from the content-addressed store, hash-verified

199 self.name = name
200
201 def __call__(self, func):
202 if not getattr(func, 'has_arguments', False):
203 func.has_arguments = True
204 func.decorators = []
205 if self.name is not None:
206 func.argcmd_name = self.name
207 # This should be the first decorator in the list of decorators, thus the
208 # last to execute. Build the parser.
209 func.parser = construct_parser(func)
210 return func
211
212
213class ArgMethodWrapper(ArgDecorator):

Callers

nothing calls this directly

Calls 1

construct_parserFunction · 0.85

Tested by

no test coverage detected