summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Beckermann <beckermann@monument-software.de>2019-10-18 17:20:47 +0200
committerAndreas Beckermann <beckermann@monument-software.de>2019-10-25 10:05:37 +0200
commit9b50d79a024155b491d6c09a829b3e382823003c (patch)
tree03b08748175b43a25df536521ebe91acd4375a2b
parente940872c12399e8fc5c33ed2e52a719373bc03cf (diff)
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 <tismer@stackless.com>
-rw-r--r--sources/shiboken2/shibokenmodule/files.dir/shibokensupport/signature/lib/enum_sig.py5
1 files changed, 0 insertions, 5 deletions
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 b026a5d2..a5e3247b 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__