Skip to content

Commit 40de247

Browse files
committed
DocumentationStyleBear.py: Amend position
`TextPosition` is now accepted by `DocumentationComment` instead of `range`. Closes #1857
1 parent 14b2d48 commit 40de247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bears/documentation/DocumentationStyleBear.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def run(self, filename, file, language: str,
9898

9999
new_comment = DocumentationComment.from_metadata(
100100
new_metadata, doc_comment.docstyle_definition,
101-
doc_comment.marker, doc_comment.indent, doc_comment.range)
101+
doc_comment.marker, doc_comment.indent, doc_comment.position)
102102

103103
if new_comment != doc_comment:
104104
# Something changed, let's apply a result.

0 commit comments

Comments
 (0)