PyRight updates

This commit is contained in:
Jeremy Rimpo
2025-05-27 18:40:43 -05:00
parent a51b05f3f9
commit 6f17243682
4 changed files with 14 additions and 11 deletions
+2 -2
View File
@@ -13,9 +13,9 @@ import mobase
from ..basic_features import BasicGameSaveGameInfo
from ..basic_game import BasicGame
from .oblivion_remaster.constants import DEFAULT_UE4SS_MODS, PLUGIN_NAME
from .oblivion_remaster.constants import DEFAULT_UE4SS_MODS, PLUGIN_NAME, UE4SSModInfo
from .oblivion_remaster.paks.widget import PaksTabWidget
from .oblivion_remaster.ue4ss.widget import UE4SSModInfo, UE4SSTabWidget
from .oblivion_remaster.ue4ss.widget import UE4SSTabWidget
def getLootPath() -> Path | None:
+10 -1
View File
@@ -1,5 +1,14 @@
from typing import TypedDict
PLUGIN_NAME = "Oblivion Remastered Support Plugin"
DEFAULT_UE4SS_MODS = [
class UE4SSModInfo(TypedDict):
mod_name: str
mod_enabled: bool
DEFAULT_UE4SS_MODS: list[UE4SSModInfo] = [
{"mod_name": "BPML_GenericFunctions", "mod_enabled": True},
{"mod_name": "BPModLoaderMod", "mod_enabled": True},
]
+1 -1
View File
@@ -68,7 +68,7 @@ class PaksTabWidget(QWidget):
def write_pak_files(self):
for index, pak in sorted(self._model.paks.items()):
name, _, current_path, target_path = pak
_, _, current_path, target_path = pak
if current_path and current_path != target_path:
path_dir = Path(current_path)
target_dir = Path(target_path)
+1 -7
View File
@@ -2,23 +2,17 @@ import json
from functools import cmp_to_key
from json import JSONDecodeError
from pathlib import Path
from typing import TypedDict
from PyQt6.QtCore import QDir, QFileInfo, Qt
from PyQt6.QtWidgets import QGridLayout, QWidget
import mobase
from ..constants import DEFAULT_UE4SS_MODS
from ..constants import DEFAULT_UE4SS_MODS, UE4SSModInfo
from .model import UE4SSListModel
from .view import UE4SSView
class UE4SSModInfo(TypedDict):
mod_name: str
mod_enabled: bool
class UE4SSTabWidget(QWidget):
def __init__(self, parent: QWidget | None, organizer: mobase.IOrganizer):
super().__init__(parent)