mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-29 16:15:52 +03:00
proton: Suppress type checker errors about non-existing user_settings.
This commit is contained in:
parent
730acf592b
commit
9f209e9091
2
proton
2
proton
@ -1312,7 +1312,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
|
||||||
|
Loading…
Reference in New Issue
Block a user