From 0d2ca52245eec69268a67857d321bc340d6a3c9b Mon Sep 17 00:00:00 2001 From: klaas <48212135+klaasmeinke@users.noreply.github.com> Date: Tue, 29 Oct 2024 17:08:31 +0100 Subject: [PATCH] oops --- subwiz/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subwiz/types.py b/subwiz/types.py index f4d8e08..2c2647e 100644 --- a/subwiz/types.py +++ b/subwiz/types.py @@ -1,6 +1,6 @@ import argparse import os -from typing import Optional +from typing import Optional, Union import tldextract import torch @@ -84,7 +84,7 @@ def input_domains_type(value: list[str]) -> list[Domain]: return domains -def output_file_type(value: Optional[str, os.PathLike]) -> Optional[os.PathLike]: +def output_file_type(value: Optional[Union[str, os.PathLike]]) -> Optional[os.PathLike]: if value is None: return value