Skip to content

Commit 095cfb5

Browse files
committed
Change doctest to python codeblock in Annotate class recipe
1 parent 44f2a45 commit 095cfb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/annotationlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,15 +559,15 @@ used with all formats, and takes advantage of class encapsulation:
559559
560560
This can then be called with:
561561

562-
.. doctest::
562+
.. code-block:: python
563563
564564
>>> from annotationlib import call_annotate_function, Format
565565
>>> call_annotate_function(Annotate(), format=Format.STRING)
566566
{'x': 'MyType'}
567567
568568
Or used as the annotate function for an object:
569569

570-
.. doctest::
570+
.. code-block:: python
571571
572572
>>> from annotationlib import get_annotations, Format
573573
>>> class C:

0 commit comments

Comments
 (0)