From f22c9d3e7686a13d7ce465f8d5d6412844481b1c Mon Sep 17 00:00:00 2001 From: Stelios Tsampas Date: Mon, 2 Dec 2024 14:45:30 +0200 Subject: [PATCH] umu_run: use `None` instead of `Optional` --- umu/umu_consts.py | 2 +- umu/umu_run.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/umu/umu_consts.py b/umu/umu_consts.py index 5d350cb0..bc9cd59e 100644 --- a/umu/umu_consts.py +++ b/umu/umu_consts.py @@ -57,7 +57,7 @@ class GamescopeAtom(Enum): # "1070560": ("scout", "steamrt1"), "1391110": ("soldier", "steamrt2"), "1628350": ("sniper", "steamrt3"), - # "": ("medic": "steamrt4"), + # "": ("medic", "steamrt4"), } XDG_CACHE_HOME: Path = ( diff --git a/umu/umu_run.py b/umu/umu_run.py index c5791309..6cdcc1d8 100755 --- a/umu/umu_run.py +++ b/umu/umu_run.py @@ -23,7 +23,7 @@ from re import match from socket import AF_INET, SOCK_DGRAM, socket from subprocess import Popen -from typing import Any, Optional +from typing import Any from filelock import FileLock from urllib3 import PoolManager, Retry @@ -314,7 +314,7 @@ def enable_steam_game_drive(env: dict[str, str]) -> dict[str, str]: def build_command( env: dict[str, str], local: Path, - opts: Optional | list[str] = None, + opts: list[str] | None = None, ) -> tuple[Path | str, ...]: """Build the command to be executed.""" shim: Path = local.joinpath("umu-shim")