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 ac5c894Copy full SHA for ac5c894
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 callable is not None and not callable(default):
673
raise TypeError("default must be callable")
674
self._default = default
675
0 commit comments