Skip to content

Commit 7943a6a

Browse files
Added missing imports to hook factory decorator example. (#677)
* Added missing imports to hook factory decorator example. * Modernise Callable import.
1 parent 3e242bf commit 7943a6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/customizing.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,9 @@ A complex use case for hook factories is described over at [](usage.md#using-fac
147147
Here's an example of using an unstructure hook factory to handle unstructuring [queues](https://docs.python.org/3/library/queue.html#queue.Queue).
148148

149149
```{doctest}
150+
>>> from collections.abc import Callable
150151
>>> from queue import Queue
151-
>>> from typing import get_origin
152+
>>> from typing import Any, get_args, get_origin
152153
>>> from cattrs import Converter
153154

154155
>>> c = Converter()

0 commit comments

Comments
 (0)