Coverage for src/blob_dict/dict/__init__.py: 0%

9 statements  

« prev     ^ index     » next       coverage.py v7.8.1, created at 2025-05-23 02:51 -0700

1from collections.abc import Mapping, MutableMapping 

2from typing import override 

3 

4from ..blob import BytesBlob 

5 

6 

7class ImmutableBlobDictBase(Mapping[str, BytesBlob]): 

8 @override 

9 def __len__(self) -> int: 

10 return sum(1 for _ in self) 

11 

12 

13class BlobDictBase(ImmutableBlobDictBase, MutableMapping[str, BytesBlob]): 

14 ...