From 2c99cd744f674392169c7ce64849ffadd122404c Mon Sep 17 00:00:00 2001 From: Alexandre Marcireau Date: Fri, 12 Jan 2024 15:23:08 +0100 Subject: [PATCH] Fix for Python 3.8 --- python/faery/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/faery/__init__.py b/python/faery/__init__.py index 97a535a..edbee83 100644 --- a/python/faery/__init__.py +++ b/python/faery/__init__.py @@ -25,8 +25,8 @@ def stream_from_file( path: typing.Union[str, pathlib.Path], stream_id: typing.Optional[int] = None, size_fallback: tuple[int, int] = (1280, 720), - version_fallback: str | None = None, - file_type: decoder.FileType | None = None, + version_fallback: typing.Optional[str] = None, + file_type: typing.Optional[decoder.FileType] = None, ) -> Stream: if isinstance(path, str): path = pathlib.Path(path)