Skip to content

Commit

Permalink
Add default value to new_packet_callback
Browse files Browse the repository at this point in the history
  • Loading branch information
daniilpastukhov committed Jul 30, 2023
1 parent 094aab5 commit 9ac05b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion depthai_sdk/src/depthai_sdk/oak_outputs/xout/xout_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self) -> None:
# self._fps_counter[name] = FPS()

# It will get assigned later inside the BasePacketHandler class
self.new_packet_callback: Callable
self.new_packet_callback: Callable = lambda x: None

def get_packet_name(self) -> str:
if self._packet_name is None:
Expand Down

0 comments on commit 9ac05b6

Please sign in to comment.