class_docstr: Save DOT source lines to file.
class_docstr_tok: ["Save","DOT","source","lines","to","file","."]
code: def __init__(
      self,
      *,
      filename: typing.Union[os.PathLike, str],
      directory: typing.Union[os.PathLike, str, None] = None,
      **kwargs,
  ) -> None:
      super().__init__(**kwargs)
  
      if filename is None:
          filename = (
              f"{self.__class__.__name__}.{self._default_extension}"
          )
  
      self.filename = os.fspath(filename)
      """str: Target file name for saving the DOT source file."""
  
      if directory is not None:
          self.directory = os.fspath(directory)
  
file_path: graphviz/graphviz/saving.py
imports: import logging
  import os
  import typing
  from .None import _defaults
  from .None import _tools
  from .None import base
  from .None import encoding
label_desc: Use image node_id 1 to create a new Save object from inherited base classes: encoding, base with example: obj = Save()