Skip to content

Commit 2ca270f

Browse files
committed
Removed redundent assertion(part of it)
1 parent 4c5cb49 commit 2ca270f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonpointer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def walk(self, doc, part):
223223

224224
part = self.get_part(doc, part)
225225

226-
assert (type(doc) in (dict, list) or hasattr(doc, '__getitem__')), "invalid document type %s" % (type(doc),)
226+
assert hasattr(doc, '__getitem__'), "invalid document type %s" % (type(doc),)
227227

228228
if isinstance(doc, Sequence):
229229
if part == '-':

0 commit comments

Comments
 (0)