Skip to content
This repository was archived by the owner on Sep 15, 2024. It is now read-only.

Commit fce336b

Browse files
committed
Fix progress reporting to show correct numbers
1 parent e449674 commit fce336b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bpystubgen/generator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def run(self, context: TaskContext) -> None:
111111
child.run(context)
112112

113113
if not self.parent:
114+
context.successful += 1
114115
return
115116

116117
context.logger.info("Processing %s (%d of %d)", self.full_name, context.done + 1, context.total)
@@ -139,6 +140,7 @@ def run(self, context: TaskContext) -> None:
139140
self.doctree += Module(name=self.name)
140141

141142
if not self.is_module or not (self.source or any(self.doctree.children)):
143+
context.successful += 1
142144
return
143145

144146
if any(self.children):

0 commit comments

Comments
 (0)