gtalarico / pyairtable

Python Api Client for Airtable
https://pyairtable.readthedocs.io
MIT License
765 stars 138 forks source link

Refactor how we access ORM model configuration #366

Closed mesozoic closed 4 months ago

mesozoic commented 5 months ago

Right now ORM configuration isn't neatly encapsulated and it's not always type-annotated. This branch refactors things a bit into a model_class.meta classvar, which has typed properties and still applies all the features we need (like dynamically determined configuration properties). This also reduces the "autocomplete noise" inside the ORM model itself, especially if we add more configuration options in the future.