Skip to content

Commit 7cbcd4e

Browse files
committed
Type Ignores for pyright
Otherwise pyright complains the imports can't be resolved. I am told there is a ticket to fix this, but for now some ugly ornamatation.
1 parent d08d38f commit 7cbcd4e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

system_tests/lewis_emulators/Attocube/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from collections import OrderedDict
22

3-
from lewis.devices import StateMachineDevice
3+
from lewis.devices import StateMachineDevice # type: ignore
44

55
from .states import DefaultState
66

system_tests/lewis_emulators/Attocube/interfaces/stream_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from lewis.adapters.stream import StreamInterface
1+
from lewis.adapters.stream import StreamInterface # type: ignore
22
from lewis.core.logging import has_log
3-
from lewis.utils.command_builder import CmdBuilder
3+
from lewis.utils.command_builder import CmdBuilder # type: ignore
44

55

66
@has_log

system_tests/tests/attocube.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import unittest
22

3-
from utils.channel_access import ChannelAccess
4-
from utils.ioc_launcher import get_default_ioc_dir
5-
from utils.test_modes import TestModes
6-
from utils.testing import get_running_lewis_and_ioc, skip_if_recsim
3+
from utils.channel_access import ChannelAccess # type: ignore
4+
from utils.ioc_launcher import get_default_ioc_dir # type: ignore
5+
from utils.test_modes import TestModes # type: ignore
6+
from utils.testing import get_running_lewis_and_ioc, skip_if_recsim # type: ignore
77

88
DEVICE_PREFIX = "ATTOCUBE_01"
99

0 commit comments

Comments
 (0)