Skip to content

Commit c537db5

Browse files
committed
Correct the type of arduino_serial
1 parent c6e7945 commit c537db5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_arduino.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from __future__ import annotations
77

88
import re
9-
from typing import NamedTuple
9+
from typing import NamedTuple, Generator
1010

1111
import pytest
1212

@@ -25,7 +25,7 @@ class MockArduino(NamedTuple):
2525

2626

2727
@pytest.fixture
28-
def arduino_serial(monkeypatch) -> None:
28+
def arduino_serial(monkeypatch) -> Generator[MockArduino, None, None]:
2929
serial_wrapper = MockSerialWrapper([
3030
("*IDN?", "Student Robotics:Arduino:X:2.0"), # Called by Arduino.__init__
3131
])

0 commit comments

Comments
 (0)