From 2e42e2248d9e9b17f577a16c6fe82bb9776f7905 Mon Sep 17 00:00:00 2001 From: lucemia Date: Thu, 6 Feb 2025 11:04:09 +0000 Subject: [PATCH] fix --- src/ffmpeg/dag/io/output_args.py | 4 ++-- src/ffmpeg/tests/test_base.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ffmpeg/dag/io/output_args.py b/src/ffmpeg/dag/io/output_args.py index 694a904b..b8c72229 100644 --- a/src/ffmpeg/dag/io/output_args.py +++ b/src/ffmpeg/dag/io/output_args.py @@ -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 @@ -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 diff --git a/src/ffmpeg/tests/test_base.py b/src/ffmpeg/tests/test_base.py index fad7426e..c6c999ae 100644 --- a/src/ffmpeg/tests/test_base.py +++ b/src/ffmpeg/tests/test_base.py @@ -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())