Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed May 6, 2024
1 parent 51ef2d9 commit ac5c894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msgpack/fallback.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ def __init__(
self._buffer = BytesIO()
self._datetime = bool(datetime)
self._unicode_errors = unicode_errors or "strict"
if not callable(default):
if callable is not None and not callable(default):
raise TypeError("default must be callable")
self._default = default

Expand Down

0 comments on commit ac5c894

Please sign in to comment.