We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b67327 commit 628c519Copy full SHA for 628c519
msgpack/_packer.pyx
@@ -213,7 +213,7 @@ cdef class Packer(object):
213
if ret != 0: break
214
ret = self._pack(v, nest_limit-1)
215
216
- elif isinstance(o, ExtType):
+ elif type(o) is ExtType if strict_types else isinstance(o, ExtType):
217
# This should be before Tuple because ExtType is namedtuple.
218
longval = o.code
219
rawval = o.data
0 commit comments