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

Method __init__

IPython/utils/coloransi.py:113–118  ·  view source on GitHub ↗
(self,__scheme_name_,colordict=None,**colormap)

Source from the content-addressed store, hash-verified

111class ColorScheme:
112 """Generic color scheme class. Just a name and a Struct."""
113 def __init__(self,__scheme_name_,colordict=None,**colormap):
114 self.name = __scheme_name_
115 if colordict is None:
116 self.colors = Struct(**colormap)
117 else:
118 self.colors = Struct(colordict)
119
120 def copy(self,name=None):
121 """Return a full copy of the object, optionally renaming it."""

Callers

nothing calls this directly

Calls 1

StructClass · 0.90

Tested by

no test coverage detected