PyQt6. Operator "-" not supported for types "QPoint" and "QPoint". Pylance(reportGeneralTypeIssues)

Viewed 19
self.move(qt_rectangle.topLeft() - QPoint(6, 0))

Is there any way to fix this error? I think it's the wrong type annotations in the PyQt6 framework for python, cause "+", "-" operands on QPoint are supported for sure.

0 Answers
Related