Skip to content

Commit

Permalink
Fix stream_options type stub
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Oct 12, 2024
1 parent 329c377 commit ff7cdbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion av/container/core.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Container:
format: ContainerFormat
options: dict[str, str]
container_options: dict[str, str]
stream_options: list[str]
stream_options: list[dict[str, str]]
streams: StreamContainer
metadata: dict[str, str]
open_timeout: Real | None
Expand Down
6 changes: 3 additions & 3 deletions av/container/core.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def open(
:param int buffer_size: Size of buffer for Python input/output operations in bytes.
Honored only when ``file`` is a file-like object. Defaults to 32768 (32k).
:param timeout: How many seconds to wait for data before giving up, as a float, or a
:ref:`(open timeout, read timeout)` tuple.
``(open timeout, read timeout)`` tuple.
:param callable io_open: Custom I/O callable for opening files/streams.
This option is intended for formats that need to open additional
file-like objects to ``file`` using custom I/O.
Expand All @@ -378,8 +378,8 @@ def open(
For devices (via ``libavdevice``), pass the name of the device to ``format``,
e.g.::
>>> # Open webcam on OS X.
>>> av.open(format='avfoundation', file='0') # doctest: +SKIP
>>> # Open webcam on MacOS.
>>> av.open('0', format='avfoundation') # doctest: +SKIP
For DASH and custom I/O using ``io_open``, add a protocol prefix to the ``file`` to
prevent the DASH encoder defaulting to the file protocol and using temporary files.
Expand Down

0 comments on commit ff7cdbb

Please sign in to comment.