We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51ef2d9 commit 31b415bCopy full SHA for 31b415b
msgpack/fallback.py
@@ -669,7 +669,7 @@ def __init__(
669
self._buffer = BytesIO()
670
self._datetime = bool(datetime)
671
self._unicode_errors = unicode_errors or "strict"
672
- if not callable(default):
+ if default is not None and not callable(default):
673
raise TypeError("default must be callable")
674
self._default = default
675
0 commit comments