Skip to content

Commit cfe4df9

Browse files
1 parent c592d72 commit cfe4df9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pylint/utils/linterstats.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class ModuleStats(TypedDict):
7777
"convention", "error", "fatal", "info", "refactor", "statement", "warning"
7878
]
7979

80+
8081
# pylint: disable-next=too-many-instance-attributes
8182
class LinterStats:
8283
"""Class used to linter stats"""
@@ -154,6 +155,7 @@ def __str__(self) -> str:
154155
{self.percent_duplicated_lines}"""
155156

156157
def init_single_module(self, module_name: str) -> None:
158+
"""Use through Pylinter.set_current_module so Pyliner.current_name is consistent."""
157159
self.by_module[module_name] = ModuleStats(
158160
convention=0, error=0, fatal=0, info=0, refactor=0, statement=0, warning=0
159161
)

0 commit comments

Comments
 (0)