Skip to content

Commit 5c56659

Browse files
authored
Adds type to the Request.files docs (#444)
2 parents 8a0e4c4 + f4b2d38 commit 5c56659

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/quart/wrappers/request.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from werkzeug.exceptions import RequestEntityTooLarge
1919
from werkzeug.exceptions import RequestTimeout
2020

21+
from ..datastructures import FileStorage
2122
from ..formparser import FormDataParser
2223
from ..globals import current_app
2324
from .base import BaseRequestWebsocket
@@ -316,7 +317,7 @@ 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

0 commit comments

Comments
 (0)