From 671d3870c279a3bafe75ab128c7175dce89d45d2 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 27 Mar 2017 14:27:38 -0700 Subject: [PATCH] Add 'file' attribute to cgi.[Mini]FieldStorage (#1104) --- stdlib/2and3/cgi.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/2and3/cgi.pyi b/stdlib/2and3/cgi.pyi index 85812198c..3898e7c60 100644 --- a/stdlib/2and3/cgi.pyi +++ b/stdlib/2and3/cgi.pyi @@ -25,7 +25,7 @@ class MiniFieldStorage: filename = ... # type: Any list = ... # type: Any type = ... # type: Any - file = ... # type: Any + file = ... # type: Optional[IO[bytes]] # Always None type_options = ... # type: Dict[Any, Any] disposition = ... # type: Any disposition_options = ... # type: Dict[Any, Any] @@ -51,6 +51,7 @@ class FieldStorage(object): disposition = ... # type: str disposition_options = ... # type: Dict[str, str] filename = ... # type: Optional[str] + file = ... # type: Optional[IO[bytes]] type = ... # type: str type_options = ... # type: Dict[str, str] innerboundary = ... # type: bytes