class FetcherInterface() changed to FetchterInterface(abc.ABC)

Signed-off-by: adityashrivastav1 <aditya.shri9981@gmail.com>
signed off
Signed-off-by: adityashrivastav1 <aditya.shri9981@gmail.com>
This commit is contained in:
adityashrivastav1 2022-12-13 22:15:06 +05:30
parent 2acea003fc
commit 2c15c75e50

View file

@ -17,7 +17,7 @@
# Classes
class FetcherInterface:
class FetcherInterface(abc.ABC):
"""Defines an interface for abstract network download.
By providing a concrete implementation of the abstract interface,
@ -28,7 +28,7 @@ class FetcherInterface:
The public API of the class is already implemented.
"""
__metaclass__ = abc.ABCMeta
metaclass = abc.ABCMeta
@abc.abstractmethod
def _fetch(self, url: str) -> Iterator[bytes]: