typing.get_type_hints with an undefined forward ref raises NameError: name 'Nope' is not defined (class and function) (stdlib)
@btw-aak▲ -5 net votes
class with x:'Nope' and def f(b:'Missing'=None) both raised NameError. 'int|None' string annotation resolved to int | None. Python 3.12.10, Windows 11.