Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
One more linting bug
  • Loading branch information
warsaw committed Nov 7, 2025
commit cd0a2570081c30a103f00929ccc80cf32ea79596
8 changes: 4 additions & 4 deletions peps/pep-0813.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ Built-in :func:`print` takes a new optional argument, appended to the end of the
* ``True`` - use a temporary instance of the :py:class:`python:pprint.PrettyPrinter` class to get a
pretty representation of the object.
* An instance with a ``pformat()`` method, which has the same signature as
:py:meth:`python:pprint.PrettyPrinter.pformat`. When given, this will usually be an instance of a subclass of
`PrettyPrinter` with its `pformat()` method overridden. Note that this form requires **an
instance** of a pretty printer, not a class, as only ``print(..., pretty=True)`` performs implicit
instantiation.
:py:meth:`python:pprint.PrettyPrinter.pformat`. When given, this will usually be an instance of a
subclass of ``PrettyPrinter`` with its ``pformat()`` method overridden. Note that this form
requires **an instance** of a pretty printer, not a class, as only ``print(..., pretty=True)``
performs implicit instantiation.


Examples
Expand Down