Add 'file' attribute to cgi.[Mini]FieldStorage (#1104)

This commit is contained in:
Guido van Rossum
2017-03-27 14:27:38 -07:00
committed by GitHub
parent ec83ed90eb
commit 671d3870c2

View File

@@ -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