A minimal reproduction:
from svcs import Registry
from typing import get_type_hints
get_type_hints(Registry)
The reason for this is the changing of the module of the different types here. This fails since get_type_hints depends on the __module__ of the given object to find the global namespace in order to resolve stringified annotations.
EDIT: Finished writing the description since I hit enter by accident before finishing the writing the issue descritpion.
A minimal reproduction:
The reason for this is the changing of the module of the different types here. This fails since
get_type_hintsdepends on the__module__of the given object to find the global namespace in order to resolve stringified annotations.EDIT: Finished writing the description since I hit enter by accident before finishing the writing the issue descritpion.