diff options
author | 2020-05-23 15:17:57 +0200 | |
---|---|---|
committer | 2020-05-23 15:17:57 +0200 | |
commit | 5120717a47c07812d1631cf0905ff3062e139487 (patch) | |
tree | 9da658952b14728a682be4b824a3940d95f8078d /tests/helpers.py | |
parent | Don't rely on HDEL ignoring keys for .pop (diff) |
DRY approach to typestring prefix resolution
Thanks to @kwzrd for this idea, basically we're making a constant with
the typestring prefixes and iterating that in all our converters.
These converter functions will also now raise TypeErrors if we try
to convert something that isn't in this constants list.
I've also added a new test that tests this functionality.
Diffstat (limited to 'tests/helpers.py')
0 files changed, 0 insertions, 0 deletions