diff options
author | Christian Tismer <tismer@stackless.com> | 2019-08-22 13:09:43 +0200 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2019-08-22 19:24:54 +0200 |
commit | 28958dfae22cc6e52dfb71c4b00c20aba72531a1 (patch) | |
tree | 61b8d680ce5935cdd984a8b1b9e36e5d8627b0ab /sources/shiboken2/generator/shiboken2/shibokengenerator.cpp | |
parent | 01b43dc3d93e632c3c42fb8e1105f200b9cee2ae (diff) |
Fix a typing bug in Python 2.7 and update
The typing module has problems if it exists twice.
This gave trouble with matplotlib, when typing was imported
and then called PySide indirectly.
The only reliable cure appears to be to use the typing
module if it is already in sys.modules .
The typing27 modue was updated to the latest version
of https://github.com/python/typing (original file with
additional license headers).
Fixes: PYSIDE-1073
Change-Id: Iebfdfe7fd51080a9334db332719928c001501381
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/generator/shiboken2/shibokengenerator.cpp')
0 files changed, 0 insertions, 0 deletions