aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-03-27 09:12:58 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-03-28 11:32:27 +0000
commit5d9b5718f0dc2c042db606c45451097dc33e9b06 (patch)
tree83cb724bfdb1a8e33e0475c5dbec4dd5a0410438
parent35097fc6cc72d9a2616ebc3c35515d09e1704478 (diff)
pyi: Fix syntax error in class attributes
Amends 8b5b0458efdbaa933c6513cd666d62962beb0edb. Fixes: PYSIDE-2653 Task-number: PYSIDE-2263 Change-Id: Ifefd08ebe5b5a0be8535840b81104180dbb5017e Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 267c75375dd21cdce8c08a2ce7a965bf7fb5aef3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 6426249e47268efd8a566d8a351003c57a2963ec) (cherry picked from commit c06a64b89dbc2dcb0dba0026499c148cfa2751bf) Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
-rw-r--r--sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/lib/pyi_generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/lib/pyi_generator.py b/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/lib/pyi_generator.py
index 29e773d7a..a37dfb1e9 100644
--- a/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/lib/pyi_generator.py
+++ b/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/lib/pyi_generator.py
@@ -159,7 +159,7 @@ class Formatter(Writer):
@contextmanager
def attribute(self, attr_name, attr_value):
spaces = indent * self.level
- self.print(f"{spaces}{attr_name:25}: ... # type: {type(attr_value).__qualname__}")
+ self.print(f"{spaces}{attr_name:25} = ... # type: {type(attr_value).__qualname__}")
yield
@contextmanager