Skip to content

Commit 5dda44b

Browse files
committed
Might as well make the default be the right type.
1 parent 2f10bc5 commit 5dda44b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jsonschema/_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import numbers
22

3+
from pyrsistent import pmap
34
import attr
4-
import pyrsistent
55

66
from jsonschema.compat import str_types, int_types
77
from jsonschema.exceptions import UndefinedTypeCheck
@@ -61,7 +61,7 @@ class TypeChecker(object):
6161
6262
The initial mapping of types to their checking functions.
6363
"""
64-
_type_checkers = attr.ib(default={}, convert=pyrsistent.pmap)
64+
_type_checkers = attr.ib(default=pmap(), convert=pmap)
6565

6666
def is_type(self, instance, type):
6767
"""

0 commit comments

Comments
 (0)