def is_edited_by_bot_only(page: pywikibot.Page) -> bool: contributors = set(page.contributors()) is_edited_by_bot_only = True for contributor in contributors: if not contributor.lower().endswith('bot') and contributor not in bots: print(contributor, ' is not a bot!') is_edited_by_bot_only = False return is_edited_by_bot_only