Skip to content

Commit 90079d8

Browse files
committed
Add __init__() to VideoCaptureDriver and VideoDisplayDriver
1 parent f5f4f0a commit 90079d8

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

red_vision/cameras/video_capture_driver.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ class VideoCaptureDriver(VideoDriver):
1414
"""
1515
Red Vision abstract base class for camera drivers.
1616
"""
17-
# No __init__() here, see VideoDriver.
17+
def __init__(self, *args, **kwargs):
18+
"""
19+
Initializes the camera driver. See VideoDriver for parameters.
20+
"""
21+
super().__init__(*args, **kwargs)
1822

1923
def open(self):
2024
"""

red_vision/displays/video_display_driver.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ class VideoDisplayDriver(VideoDriver):
1414
"""
1515
Red Vision abstract base class for display drivers.
1616
"""
17-
# No __init__() here, see VideoDriver.
17+
def __init__(self, *args, **kwargs):
18+
"""
19+
Initializes the display driver. See VideoDriver for parameters.
20+
"""
21+
super().__init__(*args, **kwargs)
1822

1923
def show(self):
2024
"""
21-
Updates the display with the contents of the framebuffer.
25+
Updates the display with the contents of the image buffer.
2226
"""
2327
raise NotImplementedError("Subclass must implement this method")

0 commit comments

Comments
 (0)