openlibrary
openlibrary copied to clipboard
Fix usage of `__annotations__` on instances
Accessing the __annotations__ attribute on an instance was never documented to work and will stop working in Python 3.14 (discussed in the last paragraph of https://peps.python.org/pep-0749/#metaclass-behavior-with-pep-649). Annotations should be retrieved from the class instead.