Skip to content

Commit 9302b66

Browse files
committed
Minor style.
1 parent 0971b05 commit 9302b66

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jsonschema/validators.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,11 @@ def is_type(self, instance, type):
140140
pytypes = self._types[type]
141141

142142
# bool inherits from int, so ensure bools aren't reported as ints
143-
if (isinstance(instance, bool) and
143+
if (
144+
isinstance(instance, bool) and
144145
issubclass(int, pytypes) and
145-
bool not in _utils.flatten(pytypes)):
146+
bool not in _utils.flatten(pytypes)
147+
):
146148
return False
147149
return isinstance(instance, pytypes)
148150

0 commit comments

Comments
 (0)