diff --git a/android_env/components/app_screen_checker.py b/android_env/components/app_screen_checker.py index ece7400..742e481 100644 --- a/android_env/components/app_screen_checker.py +++ b/android_env/components/app_screen_checker.py @@ -152,7 +152,7 @@ def matches_path( 'view_hierarchy is None. Dumpsys activity output: %s. tree: %r', str(dumpsys_activity_output), root.print_tree()) logging.error('Tree root: %s', str(root)) - return None # pytype: disable=bad-return-type + return False current_node = view_hierarchy for i, regex in enumerate(expected_view_hierarchy_path): @@ -167,7 +167,7 @@ def regex_predicate(node, expr=regex): regex.pattern, current_node) logging.error('Dumpsys activity output: %s', str(dumpsys_activity_output)) logging.error('Tree root: %s', str(root)) - return None # pytype: disable=bad-return-type + return False else: current_node = child return True