update type hinting
This commit is contained in:
@@ -45,7 +45,7 @@ def set_theme(app: QtWidgets.QApplication, theme: str = "automatic"):
|
||||
app.setStyleSheet(stylesheet)
|
||||
|
||||
|
||||
def get_theme_file(app: QtWidgets.QApplication, file: str, theme: str = None) -> str:
|
||||
def get_theme_file(app: QtWidgets.QApplication, file: str, theme: str | None = None) -> str:
|
||||
theme = settings.value("theme", type=str) if not theme else theme
|
||||
|
||||
if not is_valid_theme(theme):
|
||||
|
||||
Reference in New Issue
Block a user