mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-19 10:27:38 +03:00
config/linux: Fix pre-commit run --all-files
-only issue
When run this way mypy thinks `config.linux` has no attribute `LinuxConfig`.
This commit is contained in:
parent
acbe1231ef
commit
4db4165676
@ -88,7 +88,7 @@ class TestNewConfig:
|
||||
if sys.platform != 'linux':
|
||||
return
|
||||
|
||||
from config.linux import LinuxConfig
|
||||
from config.linux import LinuxConfig # type: ignore
|
||||
|
||||
if isinstance(config, LinuxConfig) and config.config is not None:
|
||||
config.config.read(config.filename)
|
||||
@ -179,7 +179,7 @@ class TestOldNewConfig:
|
||||
if sys.platform != 'linux':
|
||||
return
|
||||
|
||||
from config.linux import LinuxConfig
|
||||
from config.linux import LinuxConfig # type: ignore
|
||||
if isinstance(config, LinuxConfig) and config.config is not None:
|
||||
config.config.read(config.filename)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user