Skip to content

Conversation

@abrookins
Copy link
Collaborator

Fixes #728 and #468.

Changes

  1. Fix Pydantic V3 deprecation warning - Changed self.model_fields to self.__class__.model_fields in _collect_expirations() to avoid the deprecation warning about accessing model_fields from an instance.

  2. Add __all__ export list for mypy compatibility - User code with from aredis_om import ... now passes mypy --strict without errors about missing explicit exports.

@abrookins abrookins merged commit 5c14ce1 into main Jan 22, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Pydantic V3 deprecation warnings

2 participants