@@ -344,7 +344,7 @@ cdef class _Creator:
344344 def __init__(self, filename: pathlib.Path):
345345 pass
346346
347- def config_verbose(self, bool verbose: bool) -> Creator :
347+ def config_verbose(self, bool verbose: bool) -> _Creator :
348348 """ Set creator verbosity inside libzim (default: off).
349349
350350 Args:
@@ -358,7 +358,7 @@ cdef class _Creator:
358358 self.c_creator.configVerbose(verbose)
359359 return self
360360
361- def config_compression(self, compression: Compression) -> Creator :
361+ def config_compression(self, compression: Compression) -> _Creator :
362362 """ Set compression algorithm to use.
363363
364364 Check libzim for default setting. (Fall 2021 default: zstd).
@@ -374,7 +374,7 @@ cdef class _Creator:
374374 self.c_creator.configCompression(zim.comp_from_int(compression.value))
375375 return self
376376
377- def config_clustersize(self, int size: pyint) -> Creator :
377+ def config_clustersize(self, int size: pyint) -> _Creator :
378378 """ Set size of created clusters.
379379
380380 Check libzim for default setting. (Fall 2021 default: 2 Mib).
@@ -393,7 +393,7 @@ cdef class _Creator:
393393 self.c_creator.configClusterSize(size)
394394 return self
395395
396- def config_indexing(self, bool indexing: bool, str language: str) -> Creator :
396+ def config_indexing(self, bool indexing: bool, str language: str) -> _Creator :
397397 """ Configures the full- text indexing feature.
398398
399399 Args:
@@ -408,7 +408,7 @@ cdef class _Creator:
408408 self.c_creator.configIndexing(indexing, language.encode('UTF-8'))
409409 return self
410410
411- def config_nbworkers(self, int nbWorkers: pyint) -> Creator :
411+ def config_nbworkers(self, int nbWorkers: pyint) -> _Creator :
412412 """ Configures the number of threads to use for internal workers (default: 4 ).
413413
414414 Args:
@@ -422,7 +422,7 @@ cdef class _Creator:
422422 self.c_creator.configNbWorkers(nbWorkers)
423423 return self
424424
425- def set_mainpath(self, str mainPath: str) -> Creator :
425+ def set_mainpath(self, str mainPath: str) -> _Creator :
426426 """ Set path of the main entry.
427427
428428 Args:
@@ -449,7 +449,7 @@ cdef class _Creator:
449449 cdef string _content = content
450450 self.c_creator.addIllustration(size, _content)
451451
452- # def set_uuid(self, uuid) -> Creator :
452+ # def set_uuid(self, uuid) -> _Creator :
453453# self.c_creator.setUuid(uuid)
454454
455455 def add_item(self, writer_item not None: BaseWritingItem):
0 commit comments