Skip to content

Commit 6b79b12

Browse files
committed
resolved conflicts due to encode#857 merge
1 parent d03c3ac commit 6b79b12

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

httpx/_content_streams.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,10 @@ def render(self) -> typing.Iterator[bytes]:
328328
yield from self.render_data()
329329

330330
def __init__(
331-
self, data: typing.Mapping, files: typing.Mapping, boundary: bytes = None
331+
self,
332+
data: typing.Union[typing.Mapping, list],
333+
files: typing.Union[typing.Mapping, list],
334+
boundary: bytes = None,
332335
) -> None:
333336
if boundary is None:
334337
boundary = binascii.hexlify(os.urandom(16))
@@ -340,7 +343,9 @@ def __init__(
340343
self.fields = list(self._iter_fields(data, files))
341344

342345
def _iter_fields(
343-
self, data: typing.Mapping, files: typing.Mapping
346+
self,
347+
data: typing.Union[typing.Mapping, list],
348+
files: typing.Union[typing.Mapping, list],
344349
) -> typing.Iterator[typing.Union["FileField", "DataField"]]:
345350
data_items = data.items() if isinstance(data, dict) else data
346351
for name, value in data_items:

0 commit comments

Comments
 (0)