Skip to content

Commit eef04cb

Browse files
committed
Merge dev into main
2 parents 009d265 + 43644f5 commit eef04cb

File tree

1 file changed

+2
-3
lines changed
  • osbot_utils/type_safe/primitives/domains/identifiers

1 file changed

+2
-3
lines changed

osbot_utils/type_safe/primitives/domains/identifiers/Obj_Id.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
_hex_table = [f"{i:02x}" for i in range(256)]
55

66
def is_obj_id(value: str):
7-
var_type = type(value)
8-
if var_type is Obj_Id:
7+
if isinstance(value, Obj_Id):
98
return True
10-
if var_type is str:
9+
if isinstance(value, str):
1110
if len(value) == 8: # todo: add efficient check if we only have hex values
1211
return True
1312
return False

0 commit comments

Comments
 (0)