Skip to content

Commit

Permalink
Fix small typo in Rich Repr documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Jun 10, 2021
1 parent 3675880 commit 4c9f42c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/pretty.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Each tuple specifies an element in the output.
- ``yield name, value`` will generate a keyword argument.
- ``yield name, value, default`` will generate a keyword argument *if* ``value`` is not equal to ``default``.

You can also tell Rich to generate the *angular bracket* style of repr, which tend to be used where there is no easy way to recreate the object's constructor. To do this set the function attribute ``"angluar"`` to ``True`` immediately after your ``__rich_repr__`` method. For example::
You can also tell Rich to generate the *angular bracket* style of repr, which tend to be used where there is no easy way to recreate the object's constructor. To do this set the function attribute ``"angular"`` to ``True`` immediately after your ``__rich_repr__`` method. For example::

__rich_repr__.angular = True

Expand Down

0 comments on commit 4c9f42c

Please sign in to comment.