Open th3w1zard1 opened 7 months ago
Python 3.8 supports function sigs like this:
def my_function(arg1, arg2, /, arg3): ...
if you need to support older Python versions, just use a sys.version_info check for < 3.8, and just prefix the title and text args with __
Probably a better way to do this but that's just off the top of my head.
Attempting to send certain kwargs to QMessageBox will exception, while the stubs say it does support it. For example:
The above code fails on PyQt5 but mypy does not catch it. The following works however: