Skip to content

Commit c49def8

Browse files
committed
List out parameters for OneWireDevice __exit__()
1 parent 0d3fde3 commit c49def8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_onewire/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def __enter__(self):
2828
self._select_rom()
2929
return self
3030

31-
def __exit__(self, *exc):
31+
def __exit__(self, exception_type: Optional[Type[type]], exception_value: Optional[BaseException], traceback: Optional[TracebackType]) -> bool:
3232
return False
3333

3434
def readinto(self, buf, *, start=0, end=None):

0 commit comments

Comments
 (0)