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)
committerDmitry Shachnev <mitya57@debian.org>
Tue, 16 Nov 2021 09:16:14 +0000 (09:16 +0000)
commite2aca4cd56969cf04bd8e84590376dcb5146fbec
tree3718e5aeaea1e5f57926abeeea316e48344a27d7
parent87284f28e3f3531ce5466b75869a8218d88a383c
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