Skip to content

Commit 91c6984

Browse files
author
rgaudin
authored
Merge pull request #108 from openzim/keepup-with-libzim
black 24b0 formatting
2 parents 084de63 + 6896c30 commit 91c6984

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

libzim/writer.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(self):
5353
self.generator = None
5454

5555
def get_size(self) -> int:
56-
""" Size of get_data's result in bytes """
56+
"""Size of get_data's result in bytes"""
5757
raise NotImplementedError("get_size must be implemented.")
5858

5959
def feed(self) -> Blob:
@@ -74,7 +74,7 @@ def feed(self) -> Blob:
7474
return self._blob
7575

7676
def gen_blob(self):
77-
""" Generator yielding blobs for the content of the article """
77+
"""Generator yielding blobs for the content of the article"""
7878
raise NotImplementedError("gen_blob (ro feed) must be implemented")
7979

8080

@@ -117,19 +117,19 @@ def __init__(self):
117117
self._blob = None
118118

119119
def get_path(self) -> str:
120-
""" Full path of item"""
120+
"""Full path of item"""
121121
raise NotImplementedError("get_path must be implemented.")
122122

123123
def get_title(self) -> str:
124-
""" Item title. Might be indexed and used in suggestions """
124+
"""Item title. Might be indexed and used in suggestions"""
125125
raise NotImplementedError("get_title must be implemented.")
126126

127127
def get_mimetype(self) -> str:
128-
""" MIME-type of the item's content."""
128+
"""MIME-type of the item's content."""
129129
raise NotImplementedError("get_mimetype must be implemented.")
130130

131131
def get_contentprovider(self) -> ContentProvider:
132-
""" ContentProvider containing the complete content of the item """
132+
"""ContentProvider containing the complete content of the item"""
133133
raise NotImplementedError("get_contentprovider must be implemented.")
134134

135135
def __repr__(self) -> str:

0 commit comments

Comments
 (0)