(self)
return s
Format a nice indicator to show where this "comes from"
Format a nice indicator to show where this "comes from"
Format a nice indicator to show where this comes from
def from_path(self):
        # type: () -> Optional[str]
        """Format a nice indicator to show where this "comes from"
        """
        if self.req is None:
            return None
        s = str(self.req)
        if self.comes_from:
            if isinstance(self.comes_from, six.string_types):
                comes_from = self.comes_from
            else:
                comes_from = self.comes_from.from_path()
            if comes_from:
                s += '->' + comes_from
        return s
def from_path ( self ) : # type: () -> Optional[str] if self . req is None : return None s = str ( self . req ) if self . comes_from : if isinstance ( self . comes_from , six . string_types ) : comes_from = self . comes_from else : comes_from = self . comes_from . from_path ( ) if comes_from : s += '->' + comes_from return s