MCPcopy Create free account
hub / github.com/dabeaz/python-cookbook / example2.py

File example2.py

src/8/extending_classes_with_mixins/example2.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class RestrictKeysMixin:
2 def __init__(self, *args, _restrict_key_type, **kwargs):
3 self.__restrict_key_type = _restrict_key_type
4 super().__init__(*args, **kwargs)

Callers

nothing calls this directly

Calls 1

RDictClass · 0.85

Tested by

no test coverage detected