Skip to content

Commit ae431ed

Browse files
authored
Added underscore to ignore new pydocstyle item (#428)
* Added underscore to ignore new item Signed-off-by: Crola1702 <[email protected]>
1 parent 898bfbf commit ae431ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ament_pep257/ament_pep257/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ def generate_pep257_report(paths, excludes, ignore, select, convention, add_igno
187187
report = []
188188

189189
files_dict = {}
190-
for filename, checked_codes, ignore_decorators in files_to_check:
190+
# Unpack 3 values for pydocstyle <= 6.1.1 and 4 values for pydocstyle >= 6.2.0
191+
for filename, checked_codes, ignore_decorators, *_ in files_to_check:
191192
if _filename_in_excludes(filename, excludes):
192193
continue
193194
files_dict[filename] = {

0 commit comments

Comments
 (0)