Skip to content

Commit

Permalink
DocumentationStyleBear.py: Amend position
Browse files Browse the repository at this point in the history
`TextPosition` is now accepted by
`DocumentationComment` instead of `range`.
Closes #1857
  • Loading branch information
damngamerz committed Jun 25, 2017
1 parent 14b2d48 commit 40de247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bears/documentation/DocumentationStyleBear.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def run(self, filename, file, language: str,


new_comment = DocumentationComment.from_metadata( new_comment = DocumentationComment.from_metadata(
new_metadata, doc_comment.docstyle_definition, new_metadata, doc_comment.docstyle_definition,
doc_comment.marker, doc_comment.indent, doc_comment.range) doc_comment.marker, doc_comment.indent, doc_comment.position)


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

0 comments on commit 40de247

Please sign in to comment.