Fix display_as_type
for TypeAliasType
in python 3.12
#7929
Merged
display_as_type
for TypeAliasType
in python 3.12
#7929