diff --git a/stubs/WebOb/webob/compat.pyi b/stubs/WebOb/webob/compat.pyi index 887dbe069b92..66e384c55329 100644 --- a/stubs/WebOb/webob/compat.pyi +++ b/stubs/WebOb/webob/compat.pyi @@ -1,5 +1,6 @@ import sys from html import escape as escape +from io import FileIO, TextIOWrapper from queue import Empty as Empty, Queue as Queue from typing import IO @@ -8,6 +9,7 @@ if sys.version_info >= (3, 13): class cgi_FieldStorage: filename: str file: IO[bytes] + def make_file(self) -> TextIOWrapper | FileIO: ... def parse_header(line: str) -> tuple[str, dict[str, str]]: ...