src/pybel/dsl/node_classes.py
def safe_label(self) -> str:
        """Get the safe label for the node (name or BEL)."""
        if isinstance(self, CentralDogma) and self.variants:
            return self.as_bel()
        if isinstance(self, BaseConcept):
            return self.curie
        return self.as_bel()
Get the safe label for the node (name or BEL).
Get the safe label for the node (name or BEL).
Get the safe label for the node ( name or BEL ) .
def safe_label(self) -> str:
        if isinstance(self, CentralDogma) and self.variants:
            return self.as_bel()
        if isinstance(self, BaseConcept):
            return self.curie
        return self.as_bel()
def safe_label ( self ) -> str : if isinstance ( self , CentralDogma ) and self . variants : return self . as_bel ( ) if isinstance ( self , BaseConcept ) : return self . curie return self . as_bel ( )
Get the safe label for the node (name or BEL).
Get the safe label for the node ( name or BEL ) .
"""Get the safe label for the node (name or BEL)."""
self