Skip to content

Commit

Permalink
Improve docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
xpconanfan committed Sep 5, 2024
1 parent 768a02a commit f6d3ab7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mobly/controllers/android_device_lib/service_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ def for_each(self, func):
def get_service_alias_by_class(self, service_class):
"""Gets the aslias name of a registered service.
Note the same class can be registered multiple times with different alias
names. So this returnes a list.
The same service class can be registered multiple times with different
aliases. When not well managed, duplication and race conditions can arise.
One can use this API to de-duplicate as needed.
Args:
service_class: class, the class of a service type.
Expand Down

0 comments on commit f6d3ab7

Please sign in to comment.