mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Simplify __all__ definitions in modules beginning with 'a' to 'l' (#8026)
This commit is contained in:
@@ -5,39 +5,23 @@ from collections.abc import Iterable, Iterator, Mapping
|
||||
from types import TracebackType
|
||||
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",
|
||||
]
|
||||
__all__ = [
|
||||
"MiniFieldStorage",
|
||||
"FieldStorage",
|
||||
"parse",
|
||||
"parse_multipart",
|
||||
"parse_header",
|
||||
"test",
|
||||
"print_exception",
|
||||
"print_environ",
|
||||
"print_form",
|
||||
"print_directory",
|
||||
"print_arguments",
|
||||
"print_environ_usage",
|
||||
]
|
||||
|
||||
if sys.version_info < (3, 8):
|
||||
__all__ += ["parse_qs", "parse_qsl", "escape"]
|
||||
|
||||
def parse(
|
||||
fp: IO[Any] | None = ...,
|
||||
|
||||
Reference in New Issue
Block a user