We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f10bc5 commit 5dda44bCopy full SHA for 5dda44b
jsonschema/_types.py
@@ -1,7 +1,7 @@
1
import numbers
2
3
+from pyrsistent import pmap
4
import attr
-import pyrsistent
5
6
from jsonschema.compat import str_types, int_types
7
from jsonschema.exceptions import UndefinedTypeCheck
@@ -61,7 +61,7 @@ class TypeChecker(object):
61
62
The initial mapping of types to their checking functions.
63
"""
64
- _type_checkers = attr.ib(default={}, convert=pyrsistent.pmap)
+ _type_checkers = attr.ib(default=pmap(), convert=pmap)
65
66
def is_type(self, instance, type):
67
0 commit comments