Skip to content

Commit

Permalink
Fixed linting. NonSupportedFeature is not a recognizable import symbo…
Browse files Browse the repository at this point in the history
…l because of something in pytango so type checking needs to ignore it.
  • Loading branch information
burkeds committed Nov 21, 2024
1 parent 6ffc8fc commit 0d8c085
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/ophyd_async/tango/signal/_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@
SignalW,
SignalX,
)
from tango import AttrDataFormat, AttrWriteType, CmdArgType, DeviceProxy, DevState, NonSupportedFeature
from tango import (
AttrDataFormat,
AttrWriteType,
CmdArgType,
DeviceProxy,
DevState,
NonSupportedFeature, # type: ignore
)
from tango.asyncio import DeviceProxy as AsyncDeviceProxy

from ._tango_transport import TangoSignalBackend, get_python_type
Expand Down Expand Up @@ -177,9 +184,8 @@ async def infer_signal_type(
try:
if tr_name in dev_proxy.get_pipe_list():
raise NotImplementedError("Pipes are not supported")
except NonSupportedFeature:
pass

except NonSupportedFeature: # type: ignore
pass

if tr_name not in dev_proxy.get_attribute_list():
if tr_name not in dev_proxy.get_command_list():
Expand Down

0 comments on commit 0d8c085

Please sign in to comment.