Changeset View
Changeset View
Standalone View
Standalone View
swh/model/model.py
Show All 34 Lines | class MissingData(Exception): | ||||
pass | pass | ||||
SHA1_SIZE = 20 | SHA1_SIZE = 20 | ||||
# TODO: Limit this to 20 bytes | # TODO: Limit this to 20 bytes | ||||
Sha1Git = bytes | Sha1Git = bytes | ||||
Sha1 = bytes | |||||
KT = TypeVar("KT") | KT = TypeVar("KT") | ||||
VT = TypeVar("VT") | VT = TypeVar("VT") | ||||
def freeze_optional_dict( | def freeze_optional_dict( | ||||
d: Union[None, Dict[KT, VT], ImmutableDict[KT, VT]] # type: ignore | d: Union[None, Dict[KT, VT], ImmutableDict[KT, VT]] # type: ignore | ||||
▲ Show 20 Lines • Show All 942 Lines • Show Last 20 Lines |