A code formatter like Black can handle that. It's there to enforce a single code style no matter what the contributors use, whether they are human or AI.