Considering the .pyi files are generated automatically in the project, I'd recommend trying to upstream these changes/improvements. Modifying the .pyi by hands is not a good idea because you can get them lost by updates.
There is also a project called PySide6-Stubs, where the person is editing them manually, and upstreaming the reports, so we can fix them, which is also a good approach.