Skip to content

Commit

Permalink
Fixes #1916
Browse files Browse the repository at this point in the history
The class docstring for FetcherInterface needed to clearly state that
only _fetch() had to be implemented in it's implementation. This is
because the public API of the interface is implemented already.

Signed-off-by: Abhisman Sarkar <abhisman.sarkar@gmail.com>
  • Loading branch information
abs007 committed May 17, 2022
1 parent c5ca38f commit 4a2fdab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/api/tuf.ngclient.fetcher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ Fetcher

.. automodule:: tuf.ngclient.fetcher
:undoc-members:
:private-members: _fetch
3 changes: 3 additions & 0 deletions tuf/ngclient/fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class FetcherInterface:
By providing a concrete implementation of the abstract interface,
users of the framework can plug-in their preferred/customized
network stack.
Implementations of FetcherInterface only need to implement ``_fetch()``.
The public API of the class is already implemented.
"""

__metaclass__ = abc.ABCMeta
Expand Down

0 comments on commit 4a2fdab

Please sign in to comment.