Skip to content

Commit

Permalink
Use Union to support Python 3.8 and 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-ramadhan committed Apr 5, 2024
1 parent 332aefb commit 1f75956
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions matplotloom/loom.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import subprocess
from typing import Union
from pathlib import Path
from tempfile import TemporaryDirectory

Expand All @@ -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,
Expand Down

0 comments on commit 1f75956

Please sign in to comment.