from pyexlatex.models.item import Item [docs]class FileContents(Item): name = 'filecontents' [docs] def __init__(self, contents, filename: str): super().__init__(self.name, contents, env_modifiers=f'{{{filename}}}')