def dump(self, path: Union[(str, Path)]) -> None:
    'Writes this specification to a file.'
    data = self.to_dict()
    self._dump(data, path)
Writes this specification to a file.
def dump(self, path: Union[(str, Path)]) -> None:
    
    data = self.to_dict()
    self._dump(data, path)