On Thu, Jul 16, 2020 at 07:21 Patrick Arminio <patrick.arminio@gmail.com> wrote:On Thu, 16 Jul 2020 at 15:17, Guido van Rossum <guido@python.org> wrote:Perhaps you can pass the locals dict to get_type_hints()?locals would probably the right options, but unfortunately I don't have access to the locals wherethe type was defined, as I'd need to call get_type_hints from another function.Maybe I'm missing something obvious?Looks like you have to change your protocol. Why are those classes hidden inside a function instead of living in a module?