ANN: PyQt v6.11.0 Released

Phil Thompson phil at riverbankcomputing.com
Mon Mar 30 18:02:12 BST 2026


On 30/03/2026 17:16, Marko Luther wrote:
> Dear Phil,
> 
> thanks for this release and all your work you are putting into PyQt!
> 
> I just updated to this 6.11.0 from 6.10.x and mypy now complains now 
> about
> 
> error: Argument 3 to "translate" of "QCoreApplication" has
> incompatible type "None"; expected "str"  [arg-type]
> 
> for
> 
> QApplication.translate('Category', 'term', None)
> 
> According to the Qt documentation this 3rd argument to the parameter
> "disambiguation" defaults to a nullptr.
> 
> If I remove that 3rd Argument None, mypy is happy again.
> 
> Is this intentional?

No, it's a SIP regression in v6.15.0 with the addition of support for 
PEP 604 (where Optional is no longer needed). It wasn't picked up 
earlier because PyQt v6.10.x was using an older version of SIP for the 
Python v3.9 support.

You can hack the entry for QCoreApplication.translate() in the 
QtCore.pyi file to replace...

disambiguation: str = ...

...with...

disambiguation: str|None

Thanks,
Phil


More information about the PyQt mailing list