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

Method __init__

IPython/core/alias.py:133–138  ·  view source on GitHub ↗
(self, shell, name, cmd)

Source from the content-addressed store, hash-verified

131 blacklist = {'cd','popd','pushd','dhist','alias','unalias'}
132
133 def __init__(self, shell, name, cmd):
134 self.shell = shell
135 self.name = name
136 self.cmd = cmd
137 self.__doc__ = "Alias for `!{}`".format(cmd)
138 self.nargs = self.validate()
139
140 def validate(self):
141 """Validate the alias, and return the number of arguments."""

Callers 1

__init__Method · 0.45

Calls 2

validateMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected