flake8: fix style issues


flake8 reported a few issues, and there were other details
we could improve, like using more f-strings, avoiding
breaking some lines with '\' at the end and using round parenthesis
instead, and complicated long lines that could be split a bit.

Some function signatures were also long enough to split them into
one argument per line, in favor to display the type annotation
on the last line

Change-Id: I5f65f6c52ac3f2f36488d26a0cb46b8f7c9fff82
Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
commit5b4df3e6ff02a6af35d143d202b6e700a307144c
parentb10cdba1752b232a990ba2432c4bb6d634f933ec
authorCristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>
committerCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
commit timeMon, 19 Dec 2022 10:04:38 +0000