from typing import Match


def replace_one_decorated_callable_start(m: Match) -> str:
    """Define the replacement function used in `correct_all_decorated_callable_starts`."""
    start = int(m[5]) + int(m[6])  # number of decorators + line number of the first decorator
    return f"{m[1]}/_type={m[2]}{m[3]}{start}:{m[4]}"