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)
committerChristian Marillat <marillat@debian.org>
Fri, 17 Jun 2022 15:49:37 +0000 (16:49 +0100)
commitc059989964150b2f46c7f632679e9ef35b5ae33b
tree55c6f57a81af483b4203770a964cca28ec66629b
parenta23108db608ec284ed6ee2103307c3e2f52452d8
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