>>> token.restrictions
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/di/git/ewjoachim/pypitoken/pypitoken/token.py", line 671, in restrictions
return [
File "/home/di/git/ewjoachim/pypitoken/pypitoken/token.py", line 672, in <listcomp>
Restriction.load_json(caveat=caveat.caveat_id)
File "/home/di/git/ewjoachim/pypitoken/pypitoken/token.py", line 137, in load_json
return cls.load(caveat=caveat_obj)
File "/home/di/git/ewjoachim/pypitoken/pypitoken/token.py", line 118, in load
raise exceptions.LoaderError(
pypitoken.exceptions.LoaderError: Could not find matching Restriction for [4, '89e9fdb4-1a5f-49d4-8bc5-d5840a14a311']
We introduced a new caveat format in https://github.com/pypi/warehouse/pull/11903, which currently
pypitoken
can't handle: