Skip to content

Commit

Permalink
Update entrypoint.py
Browse files Browse the repository at this point in the history
Correct naming of arguments and docstring.
  • Loading branch information
cinntamani authored Jul 30, 2024
1 parent 214ef38 commit a80fba3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bibtexparser/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,18 @@ def parse_file(
def write_file(
file: Union[str, TextIO],
library: Library,
parse_stack: Optional[Iterable[Middleware]] = None,
append_middleware: Optional[Iterable[Middleware]] = None,
unparse_stack: Optional[Iterable[Middleware]] = None,
prepend_middleware: Optional[Iterable[Middleware]] = None,
bibtex_format: Optional[BibtexFormat] = None,
) -> None:
"""Write a BibTeX database to a file.
:param file: File to write to. Can be a file name or a file object.
:param library: BibTeX database to serialize.
:param parse_stack: List of middleware to apply to the database before writing.
:param unparse_stack: List of middleware to apply to the database before writing.
If None, a default stack will be used.
:param append_middleware: List of middleware to append to the default stack.
Only applicable if `parse_stack` is None.
:param prepend_middleware: List of middleware to prepend to the default stack.
Only applicable if `unparse_stack` is None.
:param bibtex_format: Customized BibTeX format to use (optional)."""
bibtex_str = write_string(
library=library,
Expand All @@ -174,7 +174,7 @@ def write_string(
:param unparse_stack: List of middleware to apply to the database before writing.
If None, a default stack will be used.
:param prepend_middleware: List of middleware to prepend to the default stack.
Only applicable if `parse_stack` is None.
Only applicable if `unparse_stack` is None.
:param bibtex_format: Customized BibTeX format to use (optional).
"""
middleware: Middleware
Expand Down

0 comments on commit a80fba3

Please sign in to comment.