Skip to content

Commit f35d929

Browse files
committed
AL-3578: Fixed types
1 parent 6a0e9e3 commit f35d929

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

labelbox/schema/confidence_presence_checker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ class LabelsConfidencePresenceChecker:
88

99
@classmethod
1010
def check(cls, raw_labels: List[Dict[str, Any]]):
11-
keys = set([])
11+
keys: Set[str] = set([])
1212
cls._collect_keys_from_list(raw_labels, keys)
1313
return len(keys.intersection(set(["confidence"]))) == 1
1414

1515
@classmethod
16-
def _collect_keys_from_list(cls, objects: List[Dict[str, Any]], keys: Set):
16+
def _collect_keys_from_list(cls, objects: List[Dict[str, Any]], keys: Set[str]):
1717
for obj in objects:
1818
if isinstance(obj, (list, tuple)):
1919
cls._collect_keys_from_list(obj, keys)
2020
elif isinstance(obj, dict):
2121
cls._collect_keys_from_object(obj, keys)
2222

2323
@classmethod
24-
def _collect_keys_from_object(cls, object: Dict[str, Any], keys: Set):
24+
def _collect_keys_from_object(cls, object: Dict[str, Any], keys: Set[str]):
2525
for key in object:
2626
keys.add(key)
2727
if isinstance(object[key], dict):

0 commit comments

Comments
 (0)