Skip to content

Commit ffbed78

Browse files
Add imports to "Using Traitlets" docs
I'm currently wrapping my head around Traitlets, and tried running the code in the docs. Although `Unicode`, `Int`, etc lie directly inside `traitlets`, it wasn't immediately obvious, so I added them to make life easier for the next user.
1 parent b775646 commit ffbed78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: docs/source/using_traitlets.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ value generation of attributes on :class:`traitlets.HasTraits`
1919
subclasses:
2020

2121
.. code:: python
22-
22+
23+
from traitlets import HasTraits, Int, Unicode
2324
import getpass
2425
2526
class Identity(HasTraits):

0 commit comments

Comments
 (0)