Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/python-packages/api-stub-generator/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Version 0.3.4 (Unreleased)
Fixed issue so that APIView is still generated even if pylint parsing fails.
Fixed issue where diagnostics could be duplicated on functions with the same name.

## Version 0.3.3 (2022-08-03)
Fixed issue in module order to get consistent order
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class Diagnostic:
id_counter = 1

def __init__(self, *, obj: "PylintError", target_id: str):
self.diagnostic_id = "AZ_PY_{}".format(Diagnostic.id_counter)
diagnostic_number = Diagnostic.id_counter
self.diagnostic_id = f"AZ_PY_{diagnostic_number}"
Diagnostic.id_counter += 1
self.text = f"{obj.message} [{obj.symbol}]"
self.help_link_uri = obj.help_link
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _regenerate_function_id(self):
Regenerate the namespace_id for functions to account for overloads, which
have the same name.
"""
lines = [f"{self.name}("]
lines = [f"{self.full_name}("]
for arg in self.args.values():
lines.append(f"{arg.argname}:{arg.argtype},")
for arg in self.kwargs.values():
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
./
pylint-guidelines-checker==0.0.5
pylint-guidelines-checker==0.0.7