-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
6.9.2
-
None
When subclassing QTranslate in pyside6 and reimplementing the translate method it seems to be possible to return None which pyside6 casts to a null QString.
This behaviour is missing from the type hints.
Current (incorrect) type hint
def translate(self, context: str, sourceText: str, /, disambiguation: str | None = ..., n: int = ...) -> str: ...
Correct type hint
def translate(self, context: str, sourceText: str, /, disambiguation: str | None = ..., n: int = ...) -> str | None: ...
This is a companion issue to PYSIDE-3192
- relates to
-
PYSIDE-3192 QTranslator::translate null QString
-
- Closed
-