def get_file(self, file_name): """Get a :class:`File <File>` object for the named file. :rtype: :class:`internetarchive.File <File>` :returns: An :class:`internetarchive.File <File>` object. """ return File(self, file_name)
def get_file(self, file_name, file_metadata=None): """Get a :class:`File <File>` object for the named file. :rtype: :class:`internetarchive.File <File>` :returns: An :class:`internetarchive.File <File>` object. :type file_metadata: dict :param file_metadata: (optional) a dict of metadata for the given fille. """ return File(self, file_name, file_metadata)
def get_file(self, file_name: str, file_metadata: Mapping | None = None) -> File: """Get a :class:`File <File>` object for the named file. :param file_metadata: a dict of metadata for the given file. :returns: An :class:`internetarchive.File <File>` object. """ return File(self, file_name, file_metadata)