Skip to content

Commit

Permalink
Linting. Remove some old code.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelDCurran committed Feb 22, 2024
1 parent 8fe4775 commit deab803
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 24 deletions.
17 changes: 3 additions & 14 deletions source/UIAHandler/_remoteOps/remoteAlgorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,20 @@
# Copyright (C) 2023-2023 NV Access Limited

from __future__ import annotations
import typing
from collections.abc import Generator
from comtypes import GUID
from .remoteFuncWrapper import (
remoteFunc,
remoteContextManager
)
from .remoteAPI import (
RemoteAPI,
RemoteUint,
RemoteInt,
RemoteIntEnum,
RemoteString,
RemoteArray,
RemoteExtensionTarget,
RemoteElement,
RemoteTextRange,
RemoteVariant
RemoteTextRange
)
from .lowLevel import (
TextUnit,
AttributeId,
StyleId
TextUnit
)


@remoteContextManager
def remote_forEachUnitInTextRange(
ra: RemoteAPI,
Expand Down
10 changes: 0 additions & 10 deletions source/UIAHandler/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,3 @@ def code(ra: remoteAPI.RemoteAPI):
cast(str, label),
cast(UIA.IUIAutomationTextRange, paragraphRange)
)

def test():
op = operation.Operation(enableCompiletimeLogging=True)
@op.buildIterableFunction
def code(ra: remoteAPI.RemoteAPI):
counter = ra.newInt(0, static=True)
with ra.whileBlock(lambda: counter < 20000):
with ra.ifBlock((counter % 1000) == 0):
ra.Yield(counter)
counter += 1

0 comments on commit deab803

Please sign in to comment.