# The following has been generated automatically from src/core/qgsrelation.h try: QgsRelation.createFromXml = staticmethod(QgsRelation.createFromXml) QgsRelation.cardinalityToDisplayString = staticmethod(QgsRelation.cardinalityToDisplayString) QgsRelation.strengthToDisplayString = staticmethod(QgsRelation.strengthToDisplayString) except (NameError, AttributeError): pass