diff options
-rw-r--r-- | jsonschema/_utils.py | 1 | ||||
-rw-r--r-- | jsonschema/tests/test_types.py | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/jsonschema/_utils.py b/jsonschema/_utils.py index 780a22d..a320b2d 100644 --- a/jsonschema/_utils.py +++ b/jsonschema/_utils.py @@ -134,6 +134,7 @@ def types_msg(instance, types): def flatten(suitable_for_isinstance): """ isinstance() can accept a bunch of really annoying different types: + * a single type * a tuple of types * an arbitrary nested tree of tuples diff --git a/jsonschema/tests/test_types.py b/jsonschema/tests/test_types.py index 2280cc3..82071ca 100644 --- a/jsonschema/tests/test_types.py +++ b/jsonschema/tests/test_types.py @@ -1,7 +1,9 @@ """ -Tests on the new type interface. The actual correctness of the type checking -is handled in test_jsonschema_test_suite; these tests check that TypeChecker -functions correctly and can facilitate extensions to type checking +Tests for the `TypeChecker`-based type interface. + +The actual correctness of the type checking is handled in +`test_jsonschema_test_suite`; these tests check that TypeChecker +functions correctly at a more granular level. """ from collections import namedtuple from unittest import TestCase |