proton: Suppress type checker errors about non-existing user_settings.

This commit is contained in:
Arkadiusz Hiler 2024-07-26 13:53:49 +03:00
parent 0f94a21b5e
commit b6eda24974

2
proton
View File

@ -1324,7 +1324,7 @@ class Session:
used_user_settings = {} used_user_settings = {}
if file_exists(g_proton.user_settings_file, follow_symlinks=True): if file_exists(g_proton.user_settings_file, follow_symlinks=True):
try: try:
import user_settings import user_settings # pyright: ignore [reportMissingImports]
for key, value in user_settings.user_settings.items(): for key, value in user_settings.user_settings.items():
if key not in self.env: if key not in self.env:
self.env[key] = value self.env[key] = value