def get_expected_return_code(source_code: str) -> int:
    """Return 1 if at least one `# MYPY:` comment was found, else 0."""
    if re.findall(r'^\s*# MYPY:', source_code, flags=re.MULTILINE):
        return 1
    return 0
Return 1 if at least one `# MYPY:` comment was found, else 0.
tests/mypy/test_mypy.py