py3.10-prep: Fix parser.py for changed typing module
authorChristian Tismer <tismer@stackless.com>
Sat, 8 May 2021 14:06:23 +0000 (16:06 +0200)
committerPeter Michael Green <plugwash@raspbian.org>
Sat, 5 Feb 2022 15:09:17 +0000 (15:09 +0000)
commit48cbb3020f1f1db00fd99eac654485700a1baa1a
tree8906cf14794e95fc3a28d0cd9db7dca737b125c4
parent7e2cfdf3794a75f229260d1db7837909884c420d
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.

(cherry picked from commit 2530cb3f165ac02b8f7132e3f5ab4f7f6896dbd9)

Gbp-Pq: Name py3.10-prep-Fix-parser.py-for-changed-typing-module.patch
sources/shiboken2/shibokenmodule/files.dir/shibokensupport/signature/parser.py