Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed May 7, 2024
1 parent 0d6a682 commit 61cbdc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Doc/faq/programming.rst
Expand Up @@ -2017,7 +2017,7 @@ relevant instance attributes are mutable, the *cached_property* approach
can't be made to work because it cannot detect changes to the
attributes.

To make the :deco:`lru_cache` approach work when the *station_id* is mutable,
To make the :deco:`~functools.lru_cache` approach work when the *station_id* is mutable,
the class needs to define the :meth:`~object.__eq__` and :meth:`~object.__hash__`
methods so that the cache can detect relevant attribute updates::

Expand Down
2 changes: 1 addition & 1 deletion Doc/library/functools.rst
Expand Up @@ -369,7 +369,7 @@ The :mod:`functools` module defines the following functions:
like normal functions, are handled as descriptors).

When *func* is a descriptor (such as a normal Python function,
:deco:`classmethod`, :deco:`staticmethod`, :deco:`abstractmethod` or
:deco:`classmethod`, :deco:`staticmethod`, :deco:`~abs.abstractmethod` or
another instance of :class:`partialmethod`), calls to ``__get__`` are
delegated to the underlying descriptor, and an appropriate
:ref:`partial object<partial-objects>` returned as the result.
Expand Down

0 comments on commit 61cbdc5

Please sign in to comment.