Fix cgi.FieldStorage's __iter__ return type (#4209)

Co-authored-by: Phillip Huang <phillip@dropbox.com>
This commit is contained in:
Phillip Huang
2020-06-08 20:40:14 -07:00
committed by GitHub
parent 206bff44ed
commit f4b23e4a80

View File

@@ -1,5 +1,5 @@
import sys
from typing import Any, AnyStr, Dict, IO, Iterable, List, Mapping, Optional, Tuple, TypeVar, Union
from typing import Any, AnyStr, Dict, IO, Iterator, List, Mapping, Optional, Tuple, TypeVar, Union
_T = TypeVar('_T', bound=FieldStorage)
@@ -80,7 +80,7 @@ class FieldStorage(object):
def __enter__(self: _T) -> _T: ...
def __exit__(self, *args: Any) -> None: ...
def __repr__(self) -> str: ...
def __iter__(self) -> Iterable[str]: ...
def __iter__(self) -> Iterator[str]: ...
def __getitem__(self, key: str) -> Any: ...
def getvalue(self, key: str, default: Any = ...) -> Any: ...
def getfirst(self, key: str, default: Any = ...) -> Any: ...