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

Method __init__

IPython/utils/shimmodule.py:55–65  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

53class ShimModule(types.ModuleType):
54
55 def __init__(self, *args, **kwargs):
56 self._mirror = kwargs.pop("mirror")
57 src = kwargs.pop("src", None)
58 if src:
59 kwargs['name'] = src.rsplit('.', 1)[-1]
60 super(ShimModule, self).__init__(*args, **kwargs)
61 # add import hook for descendent modules
62 if src:
63 sys.meta_path.append(
64 ShimImporter(src=src, mirror=self._mirror)
65 )
66
67 @property
68 def __path__(self):

Callers

nothing calls this directly

Calls 2

ShimImporterClass · 0.85
popMethod · 0.80

Tested by

no test coverage detected