#NEWLINE# def get_last_version( self , filename = None , **kwargs ) : #NEWLINE# #INDENT# 'Get the most recent version of a file in GridFS by ``"filename"``\n        or metadata fields.\n\n        Equivalent to calling :meth:`get_version` with the default\n        `version` (``-1``).\n\n        :Parameters:\n          - `filename`: ``"filename"`` of the file to get, or `None`\n          - `**kwargs` (optional): find files by custom metadata.\n\n        .. versionchanged:: 1.11\n           `filename` defaults to None;\n        .. versionadded:: 1.11\n           Accept keyword arguments to find files by custom metadata. See\n           :meth:`get_version`.\n        .. versionadded:: 1.6\n        ' #NEWLINE# return self . get_version ( filename = filename , ** filename )