Skip to content

Commit

Permalink
Merge pull request #5 from hugobloem:bug-fix
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
hugobloem committed Nov 10, 2023
2 parents a8a9193 + c83146d commit 68b13c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .ruff.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The contents of this file is based on https://github.com/home-assistant/core/blob/dev/pyproject.toml

target-version = "py310"
target-version = "py39"

select = [
"B007", # Loop control variable {name} not used within loop body
Expand Down
6 changes: 3 additions & 3 deletions wyoming-microsoft-tts/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import json
import logging
from pathlib import Path
from typing import Any
from typing import Any, Union
from urllib.parse import quote, urlsplit, urlunsplit
from urllib.request import Request, urlopen

Expand Down Expand Up @@ -57,7 +57,7 @@ def transform_voices_files(response):


def get_voices(
download_dir: str | Path,
download_dir: Union[str, Path],
update_voices: bool = False,
region: str = "westus",
key: str = "",
Expand Down Expand Up @@ -94,7 +94,7 @@ def get_voices(
return json.load(voices_file)


def find_voice(name: str, download_dir: str | Path) -> dict[str, Any]:
def find_voice(name: str, download_dir: Union[str, Path]) -> dict[str, Any]:
"""Look for the files for a voice.
Returns: Dict of voice info
Expand Down

0 comments on commit 68b13c3

Please sign in to comment.