From 7b4013d9a9d190c202e6e91c0d05f71cae439d36 Mon Sep 17 00:00:00 2001 From: morefigs Date: Sun, 14 Apr 2019 07:03:22 +1000 Subject: Type hint for empty callback --- pymba/camera.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymba/camera.py b/pymba/camera.py index 44f211c..5c72e1c 100644 --- a/pymba/camera.py +++ b/pymba/camera.py @@ -226,7 +226,7 @@ class Camera(VimbaObject): # setup frame ready callbacks if mode == CONTINUOUS: if callback is None: - def callback(frame): + def callback(frame: Frame) -> None: pass self._user_callback = callback -- cgit v1.2.3