From 1f7595646414f7e9e1034dd8b8d053cf124a99c9 Mon Sep 17 00:00:00 2001 From: ali-ramadhan Date: Fri, 5 Apr 2024 06:21:40 -0600 Subject: [PATCH] Use `Union` to support Python 3.8 and 3.9 --- matplotloom/loom.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/matplotloom/loom.py b/matplotloom/loom.py index 45eb541..cb636ef 100644 --- a/matplotloom/loom.py +++ b/matplotloom/loom.py @@ -1,4 +1,5 @@ import subprocess +from typing import Union from pathlib import Path from tempfile import TemporaryDirectory @@ -10,8 +11,8 @@ class Loom: def __init__( self, - output_filepath: str | Path, - frames_directory: str | Path = Path(TemporaryDirectory().name), + output_filepath: Union[Path, str], + frames_directory: Union[Path, str] = Path(TemporaryDirectory().name), fps: int = 30, keep_frames: bool = False, overwrite: bool = False,