Bug report
Bug description:
I am trying to generate stub files but inspect.signature throws exceptions when things are imported in TYPE_CHECKING. I tried to set globals but it doesn't help.
I don't see any hints in https://docs.python.org/3/library/inspect.html#inspect.signature and https://docs.python.org/3/library/annotationlib.html#annotationlib.get_annotations
CPython versions tested on:
3.15
Operating systems tested on:
Linux
Bug report
Bug description:
I am trying to generate stub files but
inspect.signaturethrows exceptions when things are imported inTYPE_CHECKING. I tried to setglobalsbut it doesn't help.I don't see any hints in https://docs.python.org/3/library/inspect.html#inspect.signature and https://docs.python.org/3/library/annotationlib.html#annotationlib.get_annotations
CPython versions tested on:
3.15
Operating systems tested on:
Linux