https://github.com/SoftwareHeritage/swh-model
Revision 52ef52ea46acbbf6622a172ff5fc8b9fa7d9cbd2 authored by Valentin Lorentz on 07 July 2020, 15:34:41 UTC, committed by Valentin Lorentz on 07 July 2020, 15:34:41 UTC
As NamedTuple inherits from tuple, msgpack serializes it like a tuple,
which makes it indistinguishable from a tuple when deserializing,
which is an issue for the RPC API.
1 parent bea256e
History
Tip revision: 52ef52ea46acbbf6622a172ff5fc8b9fa7d9cbd2 authored by Valentin Lorentz on 07 July 2020, 15:34:41 UTC
Use attr instead of NamedTuple to generate SWHID.
Tip revision: 52ef52e
File Mode Size
bin
docs
swh
.gitignore -rw-r--r-- 137 bytes
.pre-commit-config.yaml -rw-r--r-- 882 bytes
AUTHORS -rw-r--r-- 112 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 3.3 KB
CONTRIBUTORS -rw-r--r-- 31 bytes
LICENSE -rw-r--r-- 34.3 KB
MANIFEST.in -rw-r--r-- 157 bytes
Makefile -rw-r--r-- 163 bytes
Makefile.local -rw-r--r-- 24 bytes
README.md -rw-r--r-- 620 bytes
mypy.ini -rw-r--r-- 571 bytes
pyproject.toml -rw-r--r-- 39 bytes
pytest.ini -rw-r--r-- 58 bytes
requirements-cli.txt -rw-r--r-- 23 bytes
requirements-test.txt -rw-r--r-- 26 bytes
requirements.txt -rw-r--r-- 329 bytes
setup.cfg -rw-r--r-- 247 bytes
setup.py -rwxr-xr-x 2.5 KB
tox.ini -rw-r--r-- 479 bytes

README.md

back to top