mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-26 03:26:57 +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:
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user