Skip to content

Commit 3aee3c0

Browse files
committed
(states) ed designators use typed designator
1 parent 707c083 commit 3aee3c0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

robot_smach_states/src/robot_smach_states/util/designators/ed_designators.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from __future__ import absolute_import
1+
from typing import List
22

33
# System
44
from contextlib import redirect_stdout
@@ -18,7 +18,7 @@
1818
__author__ = 'loy'
1919

2020

21-
class EdEntityCollectionDesignator(Designator):
21+
class EdEntityCollectionDesignator(Designator[List[Entity]]):
2222
"""
2323
Resolves to a collection of Ed entities
2424
@@ -91,7 +91,7 @@ def _resolve(self):
9191
return None
9292

9393

94-
class EdEntityDesignator(Designator):
94+
class EdEntityDesignator(Designator[Entity]):
9595
"""
9696
Resolves to an entity from an Ed query
9797
"""
@@ -197,7 +197,7 @@ def _resolve(self):
197197
return None
198198

199199

200-
class EntityByIdDesignator(Designator):
200+
class EntityByIdDesignator(Designator[Entity]):
201201
def __init__(self, robot, uuid, name=None):
202202
"""
203203
Designate an entity by its ID. Resolves to the entity with that ID
@@ -221,7 +221,7 @@ def __repr__(self):
221221
return "EntityByIdDesignator(uuid={}, name={})".format(self.uuid, self.name)
222222

223223

224-
class ReasonedEntityDesignator(Designator):
224+
class ReasonedEntityDesignator(Designator[Entity]):
225225
def __init__(self, robot, query, name=None):
226226
"""
227227
Designate an entity by its ID. Resolves to the entity with that ID

0 commit comments

Comments
 (0)