Skip to content

Commit 2173de8

Browse files
committed
clarify types of optional fields
1 parent 741f17e commit 2173de8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/tracker/track.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from typing import Optional
2+
13
import numpy as np
24
import torch
35
from viam.services.vision import Detection
@@ -31,11 +33,11 @@ def __init__(
3133

3234
self.label = label
3335

34-
self.label_from_reid = None
36+
self.label_from_reid: Optional[str] = None
3537
self.conf_from_reid = 0
3638

37-
self.label_from_faceid = None
38-
self.conf_from_faceid = None
39+
self.label_from_faceid: Optional[str] = None
40+
self.conf_from_faceid: Optional[str] = None
3941

4042
self.persistence: int = 0
4143
self.is_candidate: bool = is_candidate

0 commit comments

Comments
 (0)