Skip to content

Commit

Permalink
fix warnings related to callable type
Browse files Browse the repository at this point in the history
WARNING: py:class reference target not found: callable
  • Loading branch information
ThomasWaldmann committed Aug 26, 2023
1 parent 5f52cf2 commit 6704f87
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion msgpack/_packer.pyx
Expand Up @@ -71,7 +71,8 @@ cdef class Packer(object):
Packer's constructor has some keyword arguments:
:param callable default:
:param default:
When specified, it should be callable.
Convert user type to builtin type that Packer supports.
See also simplejson's document.
Expand Down
4 changes: 2 additions & 2 deletions msgpack/_unpacker.pyx
Expand Up @@ -241,12 +241,12 @@ cdef class Unpacker(object):
:param bool strict_map_key:
If true (default), only str or bytes are accepted for map (dict) keys.
:param callable object_hook:
:param object_hook:
When specified, it should be callable.
Unpacker calls it with a dict argument after unpacking msgpack map.
(See also simplejson)
:param callable object_pairs_hook:
:param object_pairs_hook:
When specified, it should be callable.
Unpacker calls it with a list of key-value pairs after unpacking msgpack map.
(See also simplejson)
Expand Down
7 changes: 4 additions & 3 deletions msgpack/fallback.py
Expand Up @@ -163,12 +163,12 @@ class Unpacker:
:param bool strict_map_key:
If true (default), only str or bytes are accepted for map (dict) keys.
:param callable object_hook:
:param object_hook:
When specified, it should be callable.
Unpacker calls it with a dict argument after unpacking msgpack map.
(See also simplejson)
:param callable object_pairs_hook:
:param object_pairs_hook:
When specified, it should be callable.
Unpacker calls it with a list of key-value pairs after unpacking msgpack map.
(See also simplejson)
Expand Down Expand Up @@ -616,7 +616,8 @@ class Packer:
Packer's constructor has some keyword arguments:
:param callable default:
:param default:
When specified, it should be callable.
Convert user type to builtin type that Packer supports.
See also simplejson's document.
Expand Down

0 comments on commit 6704f87

Please sign in to comment.