Skip to content

Commit 6f5f161

Browse files
authored
💥[BREAKING CHANGE] - Rename write_file parameters (#489)
1 parent ff2bb6c commit 6f5f161

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎bibtexparser/entrypoint.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,18 +136,18 @@ def parse_file(
136136
def write_file(
137137
file: Union[str, TextIO],
138138
library: Library,
139-
parse_stack: Optional[Iterable[Middleware]] = None,
140-
append_middleware: Optional[Iterable[Middleware]] = None,
139+
unparse_stack: Optional[Iterable[Middleware]] = None,
140+
prepend_middleware: Optional[Iterable[Middleware]] = None,
141141
bibtex_format: Optional[BibtexFormat] = None,
142142
) -> None:
143143
"""Write a BibTeX database to a file.
144144
145145
:param file: File to write to. Can be a file name or a file object.
146146
:param library: BibTeX database to serialize.
147-
:param parse_stack: List of middleware to apply to the database before writing.
147+
:param unparse_stack: List of middleware to apply to the database before writing.
148148
If None, a default stack will be used.
149-
:param append_middleware: List of middleware to append to the default stack.
150-
Only applicable if `parse_stack` is None.
149+
:param prepend_middleware: List of middleware to prepend to the default stack.
150+
Only applicable if `unparse_stack` is None.
151151
:param bibtex_format: Customized BibTeX format to use (optional)."""
152152
bibtex_str = write_string(
153153
library=library,

0 commit comments

Comments
 (0)