Skip to content

Commit

Permalink
Pre-commit auto-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 15, 2025
1 parent ebd5918 commit 8a369a1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source/JABHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,9 +650,9 @@ def getAccessibleTextSelectionInfo(self):
def _javaGetAccessibleTextRange(self, start: int, end: int) -> str:
"""Helper method that performs the Java Access Bridge call to obtain the text of this object based on a (start, end) range.
:param start: The start index to get from, inclusive.
:param end: The end index to fetch to, exclusive.
:return: the text within the given indices as a string.
:param start: The start index to get from, inclusive.
:param end: The end index to fetch to, exclusive.
:return: the text within the given indices as a string.
"""
length = (end + 1) - start
if length <= 0:
Expand All @@ -668,11 +668,11 @@ def _javaGetAccessibleTextRange(self, start: int, end: int) -> str:

def getAccessibleTextRange(self, start: int, end: int) -> str:
"""Obtains the text of this object based on a (start, end) range.
If the text is too large to fit in the buffer, this method will split the Java Access Bridge calls in chunks to get the whole text.
If the text is too large to fit in the buffer, this method will split the Java Access Bridge calls in chunks to get the whole text.
:param start: The start index to get from, inclusive.
:param end: The end index to fetch to, exclusive.
:return: the text within the given indices as a string.
:param start: The start index to get from, inclusive.
:param end: The end index to fetch to, exclusive.
:return: the text within the given indices as a string.
"""
length = (end + 1) - start
if length < self.MAX_BUFFER_SIZE:
Expand Down

0 comments on commit 8a369a1

Please sign in to comment.