def populate_class_members(self, element_cls, prop_name):
        super(OneAndOnlyOne, self).populate_class_members(
            element_cls, prop_name
        )
        self._add_getter()
Add the appropriate methods to *element_cls*.
dataset/ETHPy150Open python-openxml/python-docx/docx/oxml/xmlchemy.py/OneAndOnlyOne.populate_class_members