diff options
author | Alex Hofsteede <alex@hofsteede.com> | 2017-11-30 18:06:04 +1300 |
---|---|---|
committer | alex-hofsteede <alex@hofsteede.com> | 2017-11-30 18:13:43 +1300 |
commit | cc1c0692f89c08c08f3c32c3d6be727a1330cee7 (patch) | |
tree | cb35da5dff5f7ba1e6a2a3dd2bc4004e6b3c9a2c /json/tests/draft7/maximum.json | |
parent | 99ca400f1d3bcd517b53d597ea463d0b4032ac41 (diff) | |
download | jsonschema-cc1c0692f89c08c08f3c32c3d6be727a1330cee7.tar.gz |
perf: Make is_type faster and cleaner
Instead of flattening to find out `is_number`, we can just check `issubclass(int, pytypes)` which doesn't require flattening the types list. Only if that passes do we need to look further.
Diffstat (limited to 'json/tests/draft7/maximum.json')
0 files changed, 0 insertions, 0 deletions