Skip to content

Commit 9ccf338

Browse files
rtuck99tpoliaw
authored andcommitted
Make pyright happy
1 parent 93c8ab0 commit 9ccf338

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_device_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import pytest
44
from ophyd.device import Device as OphydV1Device
5+
from ophyd_async.core import Device
56
from ophyd_async.core import Device as OphydV2Device
67
from ophyd_async.sim import SimMotor
78
from pytest import RaisesExc, RaisesGroup
@@ -420,7 +421,7 @@ def test_kwargs_factory(dm: DeviceManager):
420421

421422
# Factories can have kwargs but they're ignored by the device manager
422423
@dm.factory
423-
def foo(**kwargs):
424+
def foo(**kwargs) -> Device: # type: ignore
424425
s1(**kwargs)
425426

426427
dm.build_all(s1)

0 commit comments

Comments
 (0)