Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _get_text(self, **kwargs) -> str:
data = self._get_data(**kwargs)
if self.path and self.path.suffix:
return formats.serialize(data, self.path.suffix)
return formats.serialize(data)
def _get_text(self, **kwargs) -> str:
data = self._get_data(**kwargs)
if self.path and self.path.suffix:
return formats.serialize(data, self.path.suffix)
return formats.serialize(data)