Marked as helpful by the asker
Copilot mirrors the file. If the file is old code, it completes old code. Run pyupgrade --py312-plus over the repo once; after that the nearby code is modern and so are the completions. Comments do almost nothing; surrounding code does everything.