Skip to content

Commit cba825f

Browse files
author
dysonreturns
committed
Makes unit.tag be @cached_property
1 parent 15fbac3 commit cba825f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sc2/unit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def race(self) -> Race:
154154
"""Returns the race of the unit"""
155155
return Race(self._type_data._proto.race)
156156

157-
@property
157+
@cached_property
158158
def tag(self) -> int:
159159
"""Returns the unique tag of the unit."""
160160
return self._proto.tag

0 commit comments

Comments
 (0)