def _search_in_bases(type_):
found = False<EOL>for base_type in type_.declaration.bases:<EOL><INDENT>try:<EOL><INDENT>found = internal_type_traits.get_by_name(<EOL>base_type.related_class, "<STR_LIT>")<EOL><DEDENT>except runtime_errors.declaration_not_found_t:<EOL><INDENT>pass<EOL><DEDENT>if found:<EOL><INDENT>return found<EOL><DEDENT><DEDENT>raise RuntimeError(<EOL>("<STR_LIT>"<EOL>"<STR_LIT>") % type_.decl_string)<EOL>
Implementation detail.