Skip to content

Commit 44dff62

Browse files
committed
probe: typing ccompatibility fix for py3.8
1 parent 24bb4d4 commit 44dff62

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/ffmpegio/probe.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import BinaryIO, Any, TypeAlias, Literal
3+
from typing import BinaryIO, Any, Literal, Union, Tuple, Dict
44
from numbers import Number
55
from collections.abc import Sequence
66
import json, re
@@ -61,13 +61,13 @@ def _compose_entries(entries: dict[str, bool | Sequence[str]]) -> str:
6161
return ":".join(arg)
6262

6363

64-
IntervalSpec: TypeAlias = (
65-
str
66-
| int
67-
| float
68-
| tuple[str | float, str | int | float]
69-
| dict[Literal["start", "start_offset", "end"], str | float]
70-
)
64+
IntervalSpec = Union[
65+
str,
66+
int,
67+
float,
68+
Tuple[Union[str, float], Union[str, int, float]],
69+
Dict[Literal["start", "start_offset", "end"], Union[str, float]],
70+
]
7171
""" Union type to specify the FFprobe read_intervals option
7272
7373
FFprobe will seek to the interval starting point and will continue reading from that.

0 commit comments

Comments
 (0)