aboutsummaryrefslogtreecommitdiffstats
path: root/coin_build_instructions.py
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2021-05-08 16:06:23 +0200
committerCristián Maureira-Fredes <cristian.maureira-fredes@qt.io>2022-01-07 14:07:38 +0100
commit4792fd22a38f2f2c0c97ff7b3aadf8c4cf8bc2fd (patch)
tree4795819b47cd5d6a00d9f8db877ea245c9df5fd9 /coin_build_instructions.py
parent91a222c3cac542e2acdf9709ea80c5ed8ab73619 (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> (cherry picked from commit 2530cb3f165ac02b8f7132e3f5ab4f7f6896dbd9) Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'coin_build_instructions.py')
0 files changed, 0 insertions, 0 deletions