mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-04-09 21:10:18 +00:00
strict type check for ext type
This commit is contained in:
parent
9b673279d3
commit
628c519187
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ cdef class Packer(object):
|
|||
if ret != 0: break
|
||||
ret = self._pack(v, nest_limit-1)
|
||||
if ret != 0: break
|
||||
elif isinstance(o, ExtType):
|
||||
elif type(o) is ExtType if strict_types else isinstance(o, ExtType):
|
||||
# This should be before Tuple because ExtType is namedtuple.
|
||||
longval = o.code
|
||||
rawval = o.data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue