mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Add cgi.__all__ (#7292)
This commit is contained in:
@@ -4,6 +4,40 @@ from builtins import type as _type
|
||||
from collections.abc import Iterable, Iterator, Mapping
|
||||
from typing import IO, Any, Protocol
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
__all__ = [
|
||||
"MiniFieldStorage",
|
||||
"FieldStorage",
|
||||
"parse",
|
||||
"parse_multipart",
|
||||
"parse_header",
|
||||
"test",
|
||||
"print_exception",
|
||||
"print_environ",
|
||||
"print_form",
|
||||
"print_directory",
|
||||
"print_arguments",
|
||||
"print_environ_usage",
|
||||
]
|
||||
else:
|
||||
__all__ = [
|
||||
"MiniFieldStorage",
|
||||
"FieldStorage",
|
||||
"parse",
|
||||
"parse_qs",
|
||||
"parse_qsl",
|
||||
"parse_multipart",
|
||||
"parse_header",
|
||||
"test",
|
||||
"print_exception",
|
||||
"print_environ",
|
||||
"print_form",
|
||||
"print_directory",
|
||||
"print_arguments",
|
||||
"print_environ_usage",
|
||||
"escape",
|
||||
]
|
||||
|
||||
def parse(
|
||||
fp: IO[Any] | None = ...,
|
||||
environ: SupportsItemAccess[str, str] = ...,
|
||||
|
||||
Reference in New Issue
Block a user