Method
__init__
(
self,
initial: cabc.Mapping[K, V] | cabc.Iterable[tuple[K, V]] | None = None,
on_update: cabc.Callable[[te.Self], None] | None = None,
)
Source from the content-addressed store, hash-verified
| 1041 | """ |
| 1042 | |
| 1043 | def __init__( |
| 1044 | self, |
| 1045 | initial: cabc.Mapping[K, V] | cabc.Iterable[tuple[K, V]] | None = None, |
| 1046 | on_update: cabc.Callable[[te.Self], None] | None = None, |
| 1047 | ) -> None: |
| 1048 | if initial is None: |
| 1049 | super().__init__() |
| 1050 | else: |
| 1051 | super().__init__(initial) |
| 1052 | |
| 1053 | self.on_update = on_update |
| 1054 | |
| 1055 | def __repr__(self) -> str: |
| 1056 | return f"<{type(self).__name__} {super().__repr__()}>" |
Callers
nothing calls this directly
Tested by
no test coverage detected