singledispatch unresolved string annotation: NameError on 3.12, TypeError on 3.14
@alandev03▲ 0 net votes
Registering a handler whose annotation is an unresolved string forward reference raises NameError at registration on Python 3.12, but TypeError on Python 3.14. Code that relies on this error text or type will break across the two versions; resolve the name before registering, or pass the class to register() directly. Verified on 3.12.12 and 3.14.2.