aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2024-09-05 18:16:36 +0200
committerChristian Tismer <tismer@stackless.com>2024-09-06 10:40:36 +0200
commit5f3cd312fba516d805a753f87f600cd8cf11f1e9 (patch)
treeed06fb403cf02629aea7b1199a7cc70dd27d7b54 /sources/pyside6/tests
parent0b08eacaaa8fd1c6ca50ab339ee93a9621b8999a (diff)
type hints: Fix some systematic problems
__str__ and __repr__ are simply fixed by returning str instead of PyObject. __reduce__ actually has return type "str | tuple[Any, ...]", but using str here too fits the purpose. Errors before: 533 Errors after: 450 Change-Id: I6dd3527d3f5f3f035e667d0ca3c8f123e94e844f Task-number: PYSIDE-2846 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/tests')
-rw-r--r--sources/pyside6/tests/pysidetest/typesystem_pysidetest.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/tests/pysidetest/typesystem_pysidetest.xml b/sources/pyside6/tests/pysidetest/typesystem_pysidetest.xml
index 9d1323659..f2bbaa61a 100644
--- a/sources/pyside6/tests/pysidetest/typesystem_pysidetest.xml
+++ b/sources/pyside6/tests/pysidetest/typesystem_pysidetest.xml
@@ -41,7 +41,7 @@
<namespace-type name="PySideCPP">
<object-type name="TestObjectWithNamespace"/>
<object-type name="TestObject2WithNamespace">
- <add-function signature="__repr__" return-type="PyObject*">
+ <add-function signature="__repr__" return-type="str">
<inject-code class="target" position="beginning">
%PYARG_0 = Shiboken::String::fromCString("TestObject2WithNamespace(injected_repr)");
</inject-code>