summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2020-08-29 16:41:07 -0400
committerJulian Berman <Julian@GrayVines.com>2020-08-29 16:41:07 -0400
commitae4a8e04e0aa4f1e6a0b75252681fd1c0035521d (patch)
tree952ce037b93d2c8740c69ac1d5672ef4907080b0
parentb18ece38d73370446ebf290b0adb019331032c52 (diff)
downloadjsonschema-ae4a8e04e0aa4f1e6a0b75252681fd1c0035521d.tar.gz
Minor doc formatting.
-rw-r--r--jsonschema/_utils.py1
-rw-r--r--jsonschema/tests/test_types.py8
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