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

Method __init__

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

Source from the content-addressed store, hash-verified

127 blacklist = {'cd','popd','pushd','dhist','alias','unalias'}
128
129 def __init__(self, shell, name, cmd):
130 self.shell = shell
131 self.name = name
132 self.cmd = cmd
133 self.__doc__ = "Alias for `!{}`".format(cmd)
134 self.nargs = self.validate()
135
136 def validate(self):
137 """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