Skip to content

Commit 6cb3f67

Browse files
committed
Mention encoding protocol in encode!/1 docs
1 parent 84d9770 commit 6cb3f67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/pythonx.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ defmodule Pythonx do
288288
@doc """
289289
Encodes the given term to a Python object.
290290
291+
Encoding can be extended to support custom data structures, see
292+
`Pythonx.Encoder`.
293+
291294
## Examples
292295
293296
iex> Pythonx.encode!({1, true, "hello world"})

0 commit comments

Comments
 (0)