mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Fix stubtest errors (#5063)
A security fix added a "separator" argument to several URL parsing functions and method in point releases: * 3.6.13 * 3.7.10 * 3.8.8 * 3.9.2 Until all these versions are available on the GitHub Actions runners, we need to whitelist the functions in the stubtests.
This commit is contained in:
@@ -10,6 +10,7 @@ def parse(
|
||||
environ: SupportsItemAccess[str, str] = ...,
|
||||
keep_blank_values: bool = ...,
|
||||
strict_parsing: bool = ...,
|
||||
separator: str = ...,
|
||||
) -> dict[str, list[str]]: ...
|
||||
|
||||
if sys.version_info < (3, 8):
|
||||
@@ -18,7 +19,7 @@ if sys.version_info < (3, 8):
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
def parse_multipart(
|
||||
fp: IO[Any], pdict: SupportsGetItem[str, bytes], encoding: str = ..., errors: str = ...
|
||||
fp: IO[Any], pdict: SupportsGetItem[str, bytes], encoding: str = ..., errors: str = ..., separator: str = ...
|
||||
) -> dict[str, list[Any]]: ...
|
||||
|
||||
else:
|
||||
@@ -95,6 +96,7 @@ class FieldStorage(object):
|
||||
encoding: str = ...,
|
||||
errors: str = ...,
|
||||
max_num_fields: Optional[int] = ...,
|
||||
separator: str = ...,
|
||||
) -> None: ...
|
||||
elif sys.version_info >= (3, 0):
|
||||
def __init__(
|
||||
|
||||
Reference in New Issue
Block a user