diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2019-07-18 10:18:43 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2019-07-18 10:56:11 +0200 |
commit | 2228615ac4f55abf07a1f7e28bbbfee9f3ae036a (patch) | |
tree | d12f0c1af2b6cdf486ff389607844a657a1b67c1 /sources/pyside2/PySide2/support/generate_pyi.py | |
parent | 97718de50e14f69048993df4e87dda1cadcc599a (diff) | |
parent | 4646b8660721e5b8d06b06d714b4562e375f8c34 (diff) |
Merge "Merge remote-tracking branch 'origin/5.12' into 5.13"
Diffstat (limited to 'sources/pyside2/PySide2/support/generate_pyi.py')
-rw-r--r-- | sources/pyside2/PySide2/support/generate_pyi.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/pyside2/PySide2/support/generate_pyi.py b/sources/pyside2/PySide2/support/generate_pyi.py index 294cdc91b..c732227f4 100644 --- a/sources/pyside2/PySide2/support/generate_pyi.py +++ b/sources/pyside2/PySide2/support/generate_pyi.py @@ -252,6 +252,10 @@ def generate_all_pyi(outpath, options): from PySide2.support.signature import inspect from PySide2.support.signature.lib.enum_sig import HintingEnumerator + # propagate USE_PEP563 to the mapping module. + # Perhaps this can be automated? + PySide2.support.signature.mapping.USE_PEP563 = USE_PEP563 + outpath = outpath or os.path.dirname(PySide2.__file__) name_list = PySide2.__all__ if options.modules == ["all"] else options.modules errors = ", ".join(set(name_list) - set(PySide2.__all__)) |