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 Nov 25, 2024
1 parent 406060c commit 7261157
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions source/NVDAObjects/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1648,6 +1648,5 @@ def _get_linkType(self) -> controlTypes.State | None:
return ti.getLinkTypeInDocument(self.value)

def _get_linkData(self) -> "_LinkData | None":
"""If the object has an associated link, returns the link's data (target and text).
"""
"""If the object has an associated link, returns the link's data (target and text)."""
raise NotImplementedError
3 changes: 1 addition & 2 deletions source/appModules/powerpnt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,6 @@ def _get_linkData(self) -> _LinkData | None:
destination=mouseClickSetting.Hyperlink.Address,
)
return None


__gestures = {
"kb:leftArrow": "moveHorizontal",
Expand Down Expand Up @@ -1178,7 +1177,7 @@ def _getBoundingRectFromOffset(self, offset: int) -> RectLTRB:

def _getCurrentRun(
self,
offset: int
offset: int,
) -> tuple[comtypes.client.lazybind.Dispatch | None, int, int]:
runs = self.obj.ppObject.textRange.runs()
for run in runs:
Expand Down
2 changes: 1 addition & 1 deletion source/treeInterceptorHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

if TYPE_CHECKING:
import NVDAObjects
from textInfos import _LinkData
from textInfos import _LinkData

post_browseModeStateChange = extensionPoints.Action()
"""
Expand Down

0 comments on commit 7261157

Please sign in to comment.