Skip to content

Commit ec5246b

Browse files
authored
[WebOb] Add cgi_FieldStorage.make_file on Python 3.13+ (#13654)
1 parent e90c6f1 commit ec5246b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stubs/WebOb/webob/compat.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import sys
22
from html import escape as escape
3+
from io import FileIO, TextIOWrapper
34
from queue import Empty as Empty, Queue as Queue
45
from typing import IO
56

@@ -8,6 +9,7 @@ if sys.version_info >= (3, 13):
89
class cgi_FieldStorage:
910
filename: str
1011
file: IO[bytes]
12+
def make_file(self) -> TextIOWrapper | FileIO: ...
1113

1214
def parse_header(line: str) -> tuple[str, dict[str, str]]: ...
1315

0 commit comments

Comments
 (0)