<div dir="ltr">Hello,<br><br>When using PyQt with previous versions of Python, a float can be passed where an int is expected e.g. QColor(0, 0, 0, 255 * some_float).<br><br>With 3.10 however, the same code gives the following error:<br>```<br>TypeError: arguments did not match any overloaded call:<br>  QColor(Qt.GlobalColor): argument 1 has unexpected type 'int'<br>  QColor(int): too many arguments<br>  QColor(QRgba64): argument 1 has unexpected type 'int'<br>  QColor(Any): too many arguments<br>  QColor(): too many arguments<br>  QColor(int, int, int, alpha: int = 255): argument 4 has unexpected type 'float'<br>  QColor(str): argument 1 has unexpected type 'int'<br>  QColor(Union[QColor, Qt.GlobalColor, QGradient]): argument 1 has unexpected type 'int'<br>```<br><br>Specifically `QColor(int, int, int, alpha: int = 255): argument 4 has unexpected type 'float'`.<br><br>I believe this is related to the following deprecation in 3.8 which was solidified in 3.10: <a href="https://bugs.python.org/issue36048" target="_blank">https://bugs.python.org/issue36048</a> <br><br>Cheers<br></div>