22
33import shutil
44import sys
5+ from collections .abc import Callable
56from pathlib import Path
6- from typing import Callable , Generic , TypeVar
7+ from typing import Generic , TypeVar
78
89from PyQt6 .QtCore import QDir , QFileInfo , QStandardPaths
910from PyQt6 .QtGui import QIcon
@@ -49,7 +50,7 @@ def replace_variables(value: str, game: BasicGame) -> str:
4950
5051class BasicGameMapping (Generic [_T ]):
5152 # The game:
52- _game : " BasicGame"
53+ _game : BasicGame
5354
5455 # Name of the attribute for exposure:
5556 _exposed_name : str
@@ -61,7 +62,7 @@ class BasicGameMapping(Generic[_T]):
6162 _required : bool
6263
6364 # Callable returning a default value (if not required):
64- _default : Callable [[" BasicGame" ], _T ]
65+ _default : Callable [[BasicGame ], _T ]
6566
6667 # Function to apply to the value:
6768 _apply_fn : Callable [[_T | str ], _T ] | None
@@ -256,7 +257,7 @@ def __init__(self, game: BasicGame):
256257 game ,
257258 "Description" ,
258259 "description" ,
259- lambda g : "Adds basic support for game {}." . format ( g .gameName ()) ,
260+ lambda g : f "Adds basic support for game { g .gameName ()} ." ,
260261 )
261262 self .gameName = BasicGameMapping (game , "GameName" , "gameName" )
262263 self .gameShortName = BasicGameMapping (game , "GameShortName" , "gameShortName" )
@@ -416,7 +417,7 @@ def setup():
416417 _gamePath : str
417418
418419 def __init__ (self ):
419- super (BasicGame , self ).__init__ ()
420+ super ().__init__ ()
420421
421422 if not hasattr (self , "_fromName" ):
422423 self ._fromName = self .__class__ .__name__
0 commit comments