Skip to content

Commit

Permalink
refactor: simplify type aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Jan 31, 2025
1 parent 67ecae2 commit dc8d1b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
10 changes: 3 additions & 7 deletions umu/umu_proton.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,9 @@

SessionPools = tuple[ThreadPoolExecutor, PoolManager]

# Unique subdir in /tmp
CacheTmpfs = Path

# Unique subdir in $XDG_CACHE_HOME/umu
CacheSubdir = Path

SessionCaches = tuple[CacheTmpfs, CacheSubdir]
# umu will download and extract fetched resources in separate directories
# First element is a subdir in /tmp which is to download, while second in $XDG_CACHE_HOME
SessionCaches = tuple[Path, Path]


class ProtonVersion(Enum):
Expand Down
9 changes: 4 additions & 5 deletions umu/umu_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@
write_file_chunks,
)

Codename = str

Variant = str

RuntimeVersion = tuple[Codename, Variant]
# umu uses some metadata to dynamically construct the runtime's URL and for logging
# First element is the runtime's codename, second is the variant
# e.g., (sniper, steamrt3)
RuntimeVersion = tuple[str, str]

SessionPools = tuple[ThreadPoolExecutor, PoolManager]

Expand Down

0 comments on commit dc8d1b9

Please sign in to comment.