MCPcopy
hub / github.com/celery/celery / __init__

Method __init__

celery/utils/graph.py:250–259  ·  view source on GitHub ↗
(self, root=None, type=None, id=None,
                 indent=0, inw=' ' * 4, **scheme)

Source from the content-addressed store, hash-verified

248 graph_scheme = {'bgcolor': 'mintcream'}
249
250 def __init__(self, root=None, type=None, id=None,
251 indent=0, inw=' ' * 4, **scheme):
252 self.id = id or 'dependencies'
253 self.root = root
254 self.type = type or 'digraph'
255 self.direction = self._dirs[self.type]
256 self.IN = inw * (indent or 0)
257 self.INp = self.IN + inw
258 self.scheme = dict(self.scheme, **scheme)
259 self.graph_scheme = dict(self.graph_scheme, root=self.label(self.root))
260
261 def attr(self, name, value):
262 value = f'"{value}"'

Callers

nothing calls this directly

Calls 1

labelMethod · 0.95

Tested by

no test coverage detected