Skip to content

Commit 31b415b

Browse files
committed
fixup
1 parent 51ef2d9 commit 31b415b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgpack/fallback.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ def __init__(
669669
self._buffer = BytesIO()
670670
self._datetime = bool(datetime)
671671
self._unicode_errors = unicode_errors or "strict"
672-
if not callable(default):
672+
if default is not None and not callable(default):
673673
raise TypeError("default must be callable")
674674
self._default = default
675675

0 commit comments

Comments
 (0)