original_docstring: Generate a file with the version.
docstring: Generate a file with the version.
docstring_tokens: Generate a file with the version .
code: def generate(file: str, template: Optional[str], **opts: Any) -> None:
      """Generate a file with the version."""
  
      info = _stat('.', **opts)
      if not info:
          return
      version = _next_version(info, **opts)
  
      kwargs = {}
      if template is not None:
          kwargs['template'] = template.replace('\\r\\n', '\n').replace('\\n', '\n')
      core.generate(file, version, info, **kwargs)
code_tokens: def generate ( file : str , template : Optional [ str ] , ** opts : Any ) -> None : info = _stat ( '.' , ** opts ) if not info : return version = _next_version ( info , ** opts ) kwargs = { } if template is not None : kwargs [ 'template' ] = template . replace ( '\\r\\n' , '\n' ) . replace ( '\\n' , '\n' ) core . generate ( file , version , info , ** kwargs )
short_docstring: Generate a file with the version.
short_docstring_tokens: Generate a file with the version .
comment: """Generate a file with the version."""