Fix mypy issues after 1.14 upgrade
mypy does not do type narrowing with "in": https://github.com/python/mypy/issues/12535 And mypy now knows that those values can be None: https://github.com/python/typeshed/pull/12936
This commit is contained in:
parent
980105aa11
commit
7d1179e0e3
|
|
@ -183,9 +183,9 @@ class StateConfig(configparser.ConfigParser):
|
|||
return
|
||||
|
||||
old_chromium_version_str = self['general'].get('chromium_version', None)
|
||||
if old_chromium_version_str in ['no', None]:
|
||||
if old_chromium_version_str == "no" or old_chromium_version_str is None:
|
||||
old_qtwe_version = self['general'].get('qtwe_version', None)
|
||||
if old_qtwe_version in ['no', None]:
|
||||
if old_qtwe_version == "no" or old_qtwe_version is None:
|
||||
return
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in New Issue