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

Method __init__

celery/app/defaults.py:52–56  ·  view source on GitHub ↗
(self, default=None, *args, **kwargs)

Source from the content-addressed store, hash-verified

50 'bool': strtobool, 'dict': dict, 'tuple': tuple}
51
52 def __init__(self, default=None, *args, **kwargs):
53 self.default = default
54 self.type = kwargs.get('type') or 'string'
55 for attr, value in kwargs.items():
56 setattr(self, attr, value)
57
58 def to_python(self, value):
59 return self.typemap[self.type](value)

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected