Skip to content

Commit

Permalink
fix more types in processing
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbudd committed Jun 3, 2021
1 parent 17c6ecd commit 8d54ca0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source/controlTypes/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Copyright (C) 2007-2021 NV Access Limited, Babbage B.V.

from enum import Enum, auto
from typing import Any, Dict, List, Optional, Set
from typing import Dict, List, Optional, Set

from .role import ROLE, clickableRoles
from .state import STATE, STATES_SORTED, negativeStateLabels, stateLabels
Expand Down Expand Up @@ -177,13 +177,13 @@ def processNegativeStates(


def processAndLabelStates(
role: int,
states: Set[Any],
role: ROLE,
states: Set[STATE],
reason: OutputReason,
positiveStates: Optional[Set[Any]] = None,
negativeStates: Optional[Set[Any]] = None,
positiveStateLabelDict: Dict[int, str] = {},
negativeStateLabelDict: Dict[int, str] = {},
positiveStates: Optional[Set[STATE]] = None,
negativeStates: Optional[Set[STATE]] = None,
positiveStateLabelDict: Dict[STATE, str] = {},
negativeStateLabelDict: Dict[STATE, str] = {},
) -> List[str]:
"""Processes the states for an object and returns the appropriate state labels for both positive and
negative states.
Expand Down

0 comments on commit 8d54ca0

Please sign in to comment.