aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/config.py
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2021-05-08 16:06:23 +0200
committerChristian Tismer <tismer@stackless.com>2021-08-18 01:20:04 +0200
commit2530cb3f165ac02b8f7132e3f5ab4f7f6896dbd9 (patch)
tree22cdb909c693153ae9572e86faf54145fe419dd1 /build_scripts/config.py
parentd0f0e5ffabd4debeebed0c298b9ae9981e16ba18 (diff)
py3.10-prep: Fix parser.py for changed typing module
The typing module has subtle changes that are not even documented: Typing types now have a __name__ attribute. That confused the parser of the pyi generator because suddenly stingizing Callable[..., Optional[str]] resulted in Callable[..., Optional] because of special rules that return the generic name of a typing type, which was very unexpected. Finding this bug took a lot of debugging of the recursive `_resolve_type` function. We finally move the debugging_aid string as a function into lib/tool.py, because this was very helpful. [ChangeLog][shiboken6] The parser for .pyi files needed an update because of undocumented changes in typing.py for Python 3.10 . Task-number: PYSIDE-1436 Change-Id: I3b8f2c1aa52a23014a8a915a0c677af96dfc536f Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'build_scripts/config.py')
0 files changed, 0 insertions, 0 deletions