Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix for typing.Union 3.10 syntax
  • Loading branch information
Geo5 committed Jul 29, 2025
commit 4d580ba58ec7d06a4a687d75fa0138c1d60b81e5
4 changes: 2 additions & 2 deletions etgtools/tweaker_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def removeWxPrefix(name):
_AUTO_CONVERSION_CACHE_FILE: Final = '__auto_conversion_cache__.json'


def load_auto_conversions(destFile: str | None = None) -> dict[str, Tuple[str, ...]]:
def load_auto_conversions(destFile: Optional[str] = None) -> dict[str, Tuple[str, ...]]:
"""Load FixWxPrefix auto conversions from cache file if it exists."""
import json
if not destFile:
Expand All @@ -275,7 +275,7 @@ class FixWxPrefix(object):
_auto_conversions: dict[str, Tuple[str, ...]] = load_auto_conversions()

@classmethod
def cache_auto_conversions(cls, destFile: str | None = None) -> None:
def cache_auto_conversions(cls, destFile: Optional[str] = None) -> None:
"""Save current auto conversions to a cache file."""
import json

Expand Down
Loading