From 08400e0c986d8bcaedb16adaaf31b2baddd46092 Mon Sep 17 00:00:00 2001 From: Jens Jorgensen Date: Thu, 15 May 2025 09:23:14 -0500 Subject: [PATCH] use type() is list for exact checking --- msgpack/fallback.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msgpack/fallback.py b/msgpack/fallback.py index 4307bc8..8fcc1d7 100644 --- a/msgpack/fallback.py +++ b/msgpack/fallback.py @@ -529,7 +529,7 @@ class Unpacker: raise ValueError("%s is not allowed for map key" % str(type(key))) if isinstance(key, str): key = sys.intern(key) - elif isinstance(key, list): + elif type(key) is list: key = tuple(key) ret[key] = self._unpack(EX_CONSTRUCT) if self._object_hook is not None: