MCPcopy Create free account
hub / github.com/amyasnikov/validity / __init__

Method __init__

validity/subforms.py:64–68  ·  view source on GitHub ↗
(self, data=None, *args, **kwargs)

Source from the content-addressed store, hash-verified

62 """
63
64 def __init__(self, data=None, *args, **kwargs):
65 if data is not None:
66 if data.keys() != {"params"}:
67 data = type(data)({"params": dict(data)})
68 super().__init__(data, *args, **kwargs)
69
70 def clean_params(self):
71 params = self.cleaned_data["params"]

Callers

nothing calls this directly

Calls 2

keysMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected