From 9b50d79a024155b491d6c09a829b3e382823003c Mon Sep 17 00:00:00 2001 From: Andreas Beckermann Date: Fri, 18 Oct 2019 17:20:47 +0200 Subject: shiboken: Fix pyi generation for external modules enum_sig.py is used to generate .pyi files (in sources/pyside2/PySide2/support/generate_pyi.py) from the bindings. The file can also be useful by external modules that were generated by shiboken, however the check for the modulename being PySide2 or shiboken2 prevents this. Remove this check, as discussed on IRC. This seems to be working internally as well and re-adds support for usages by external modules. Change-Id: I81af943c43f8f84aa0b0d89260cd99215acdb10d Reviewed-by: Christian Tismer --- .../files.dir/shibokensupport/signature/lib/enum_sig.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'sources') diff --git a/sources/shiboken2/shibokenmodule/files.dir/shibokensupport/signature/lib/enum_sig.py b/sources/shiboken2/shibokenmodule/files.dir/shibokensupport/signature/lib/enum_sig.py index b026a5d20..a5e3247b1 100644 --- a/sources/shiboken2/shibokenmodule/files.dir/shibokensupport/signature/lib/enum_sig.py +++ b/sources/shiboken2/shibokenmodule/files.dir/shibokensupport/signature/lib/enum_sig.py @@ -96,11 +96,6 @@ class ExactEnumerator(object): return ret def klass(self, class_name, klass): - modname = klass.__module__ - if not (modname.startswith("PySide2") or modname.startswith("shiboken2")): - # don't look into any foreign classes! - ret = self.result_type() - return ret bases_list = [] for base in klass.__bases__: name = base.__name__ -- cgit v1.2.3