MCPcopy
hub / github.com/django/django / __init_subclass__

Method __init_subclass__

django/test/testcases.py:1884–1890  ·  view source on GitHub ↗
(cls, /, **kwargs)

Source from the content-addressed store, hash-verified

1882 lockfile = None
1883
1884 def __init_subclass__(cls, /, **kwargs):
1885 super().__init_subclass__(**kwargs)
1886 if cls.lockfile is None:
1887 raise ValueError(
1888 "{}.lockfile isn't set. Set it to a unique value "
1889 "in the base class.".format(cls.__name__)
1890 )
1891
1892 @classmethod
1893 def setUpClass(cls):

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected