Coverage for object_streams/history/pghistory.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.16.0, created at 2026-09-02 17:07 +0000

1"""Reserved extension point for django-pghistory integration.""" 

2 

3from __future__ import annotations 

4 

5from typing import Any 

6 

7from object_streams.events import SourceRef 

8 

9 

10__all__ = ("PgHistoryAdapter",) 

11 

12 

13class PgHistoryAdapter: 

14 """Adapter shell for django-pghistory records.""" 

15 

16 def source_ref_for_history(self, history_record: Any) -> SourceRef: 

17 msg = "django-pghistory source mapping is not implemented yet." 

18 raise NotImplementedError(msg)