Skip to content

Commit d4b5c47

Browse files
committed
fixup! refactor: initial Python class definition
1 parent 35915e4 commit d4b5c47

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spidev/_spi.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,17 @@ def as_int(val: Any, name: str = "Value") -> int:
2222
class SpiDev(_cspi.SpiDev):
2323
def __init__(
2424
self,
25-
bus: int | None,
26-
client: int | None,
25+
bus: int | None = None,
2726
device: int | None = None,
27+
*,
2828
path: StrPath | None = None,
2929
mode: int | None = None,
3030
bits_per_word: int | None = None,
3131
max_speed_hz: int | None = None,
3232
):
33-
super().__init__(bus, client)
33+
super().__init__(bus, device)
3434

3535
self.bus = bus
36-
self.client = client
3736
self.device = device
3837
if path and (bus or device):
3938
raise ValueError(

0 commit comments

Comments
 (0)