Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemia committed Feb 6, 2025
1 parent d3ef9cd commit 2e42e22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ffmpeg/dag/io/output_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from abc import ABC, abstractmethod
from pathlib import Path
from typing import TYPE_CHECKING, Any
from typing import TYPE_CHECKING, Any, Mapping

from ...types import Boolean, Float, Func, Int, Int64, String, Time, Value

Expand Down Expand Up @@ -114,7 +114,7 @@ def output(
dcodec: String = None,
dn: Boolean = None,
top: Int = None,
extra_options: dict[str, Value] = None,
extra_options: Mapping[str, Value] = None,
) -> OutputStream:
"""
Output file URL
Expand Down
2 changes: 1 addition & 1 deletion src/ffmpeg/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
def test_output_node(snapshot: SnapshotAssertion) -> None:
input1 = input("input1")

value = {"str": "x", "int": 1, "float": 0.1}
value: dict[str, str | int | float] = {"str": "x", "int": 1, "float": 0.1}
# due to https://github.com/python/mypy/issues/11583
# out = input1.output(filename="out.mp4", **value) # type: ignore[arg-type]
# assert snapshot(extension_class=JSONSnapshotExtension) == (out.compile())
Expand Down

0 comments on commit 2e42e22

Please sign in to comment.