@@ -521,22 +521,24 @@ an :term:`annotate function`.
521521To provide the :attr: `~Format.VALUE `, :attr: `~Format.STRING `, or
522522:attr: `~Format.FORWARDREF ` formats directly, an :term: `annotate function ` must provide
523523the following attribute:
524+
524525* A callable ``__call__ `` with signature ``__call__(format, /) -> dict ``, that does not
525- raise a :err : `NotImplementedError ` when called with a supported format.
526+ raise a :exc : `NotImplementedError ` when called with a supported format.
526527
527528To provide the :attr: `~Format.VALUE_WITH_FAKE_GLOBALS ` format, which is used to
528529automatically generate :attr: `~Format.STRING ` or :attr: `~Format.FORWARDREF ` if they are
529530not supported directly, :term: `annotate functions <annotate function> ` must provide the
530531following attributes:
532+
531533* A callable ``__call__ `` with signature ``__call__(format, /) -> dict ``, that does not
532- raise a :err : `NotImplementedError ` when called with
533- :attr: `~Format.VALUE_WITH_FAKE_GLOBALS `.
534+ raise a :exc : `NotImplementedError ` when called with
535+ :attr: `~Format.VALUE_WITH_FAKE_GLOBALS `.
534536* A :ref: `code object <code-objects >` ``__code__ `` containing the compiled code for the
535- annotate function.
537+ annotate function.
536538* Optional: A tuple of the function's positional defaults ``__kwdefaults__ ``, if the
537- function represented by ``__code__ `` uses any positional defaults.
539+ function represented by ``__code__ `` uses any positional defaults.
538540* Optional: A dict of the function's keyword defaults ``__defaults__ ``, if the function
539- represented by ``__code__ `` uses any keyword defaults.
541+ represented by ``__code__ `` uses any keyword defaults.
540542* Optional: All other :ref: `function attributes <inspect-types >`.
541543
542544.. code-block :: python
0 commit comments