You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace hardcoded census year parsing (census2010, census2020, census2023)
with dynamic detection and parsing of any census field returned by the API.
Changes:
- Modified _parse_fields() to automatically detect and parse any field
matching the pattern "census" + digits (e.g., census2024, census2025)
- Removed slots=True from GeocodioFields to allow dynamic field passing
via **kwargs (backwards compatible, negligible performance impact)
- Only parses census fields that are defined in the GeocodioFields model
Benefits:
- Fixes issue where census2024 was not being parsed
- Future-proof: new census years only require adding a field definition
to GeocodioFields, no changes needed to parsing logic
- Maintains backwards compatibility with all existing census fields
Fixes#12
0 commit comments