Skip to content

Commit 17b06f4

Browse files
Snooz82aaltat
authored andcommitted
added type hints
Signed-off-by: René <snooz@posteo.de>
1 parent 7f8b7c0 commit 17b06f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/robotlibcore.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ def add_library_components(self, library_components):
6060
# method names as well as possible custom names.
6161
self.attributes[name] = self.attributes[kw_name] = kw
6262

63-
def _set_library_listeners(self, library_components):
63+
def _set_library_listeners(self, library_components: list):
6464
listeners = self._get_component_listeners(library_components)
6565
listeners = self._insert_manually_registered_listeners(listeners)
6666
listeners = self._insert_self_to_listeners(listeners)
6767
if listeners:
6868
self.ROBOT_LIBRARY_LISTENER = listeners
6969

70-
def _insert_self_to_listeners(self, component_listeners):
70+
def _insert_self_to_listeners(self, component_listeners: list) -> list:
7171
if self not in component_listeners:
7272
try:
7373
getattr(self, "ROBOT_LISTENER_API_VERSION")
@@ -86,7 +86,7 @@ def _insert_manually_registered_listeners(self, component_listeners: list) -> li
8686
except AttributeError:
8787
return component_listeners
8888

89-
def _get_component_listeners(self, library_listeners):
89+
def _get_component_listeners(self, library_listeners: list) -> list:
9090
return [component for component in library_listeners if hasattr(component, "ROBOT_LISTENER_API_VERSION")]
9191

9292
def __get_members(self, component):

0 commit comments

Comments
 (0)