mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 19:01:15 +08:00
Add types to urllib3.filepost stubs (#9924)
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
from collections.abc import Iterable, Mapping, Sequence
|
||||
from typing import Any
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from . import fields
|
||||
|
||||
@@ -6,7 +8,10 @@ RequestField = fields.RequestField
|
||||
|
||||
writer: Any
|
||||
|
||||
def choose_boundary(): ...
|
||||
def iter_field_objects(fields): ...
|
||||
_TYPE_FIELDS_SEQUENCE: TypeAlias = Sequence[tuple[str, fields._FieldValueTuple] | RequestField]
|
||||
_TYPE_FIELDS: TypeAlias = _TYPE_FIELDS_SEQUENCE | Mapping[str, fields._FieldValueTuple]
|
||||
|
||||
def choose_boundary() -> str: ...
|
||||
def iter_field_objects(fields: _TYPE_FIELDS) -> Iterable[RequestField]: ...
|
||||
def iter_fields(fields): ...
|
||||
def encode_multipart_formdata(fields, boundary=...): ...
|
||||
def encode_multipart_formdata(fields: _TYPE_FIELDS, boundary: str | None = ...) -> tuple[bytes, str]: ...
|
||||
|
||||
Reference in New Issue
Block a user