File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from werkzeug .exceptions import RequestEntityTooLarge
1919from werkzeug .exceptions import RequestTimeout
2020
21+ from ..datastructures import FileStorage
2122from ..formparser import FormDataParser
2223from ..globals import current_app
2324from .base import BaseRequestWebsocket
@@ -316,13 +317,12 @@ async def form(self) -> MultiDict:
316317 return self ._form
317318
318319 @property
319- async def files (self ) -> MultiDict :
320+ async def files (self ) -> MultiDict [ str , FileStorage ] :
320321 """The parsed files.
321322
322323 This will return an empty multidict unless the request
323324 mimetype was ``enctype="multipart/form-data"`` and the method
324- POST, PUT, or PATCH; in that case the type of values in the
325- multidict is ``FileStorage``.
325+ POST, PUT, or PATCH.
326326 """
327327 await self ._load_form_data ()
328328 return self ._files
You can’t perform that action at this time.
0 commit comments