Skip to content

bib.bibtexparser.middlewares.block.authors

Classes

ConstrainNumberOfAuthors

ConstrainNumberOfAuthors(
    maximum_authors, allow_inplace_modification=True
)

Bases: BlockMiddleware

Constrain the number of authors.

Source code in pybibtexer/bib/bibtexparser/middlewares/block/authors.py
def __init__(self, maximum_authors: int, allow_inplace_modification: bool = True):
    super().__init__(allow_inplace_modification=allow_inplace_modification, allow_parallel_execution=True)

    self.maximum_authors = maximum_authors