Replace Dict[str, bytes] with a TypedDict to represent dicts of hashes
Unfortunately, this requires jumping through a few hoops (`cast()` and `# type: ignore`) as mypy does not allow `d[k]` when `d` is a typed dict and `k` is not a literal string.
Showing
- swh/storage/cassandra/cql.py 7 additions, 5 deletionsswh/storage/cassandra/cql.py
- swh/storage/cassandra/storage.py 15 additions, 10 deletionsswh/storage/cassandra/storage.py
- swh/storage/interface.py 13 additions, 2 deletionsswh/storage/interface.py
- swh/storage/postgresql/storage.py 3 additions, 4 deletionsswh/storage/postgresql/storage.py
- swh/storage/proxies/filter.py 3 additions, 3 deletionsswh/storage/proxies/filter.py
- swh/storage/tests/test_cassandra_migration.py 7 additions, 7 deletionsswh/storage/tests/test_cassandra_migration.py
Loading
Please register or sign in to comment