Skip to content

Commit

Permalink
Review comment: Stronger typing.
Browse files Browse the repository at this point in the history
done as part of SEC-257 | CURA-8968

Co-authored-by: Jaime van Kessel <[email protected]>
  • Loading branch information
rburema and nallath committed May 31, 2022
1 parent 8fd48b4 commit bfe541c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UM/Preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self) -> None:
self._preferences = {} # type: Dict[str, Dict[str, _Preference]]
self._untrusted_preferences: Dict[(str, str), Callable] = {}

def indicateUntrustedPreference(self, group: str, key: str, eval_func: Callable) -> None:
def indicateUntrustedPreference(self, group: str, key: str, eval_func: Callable[[str], bool]) -> None:
"""Indicates that the value of this setting should be evaluated before acceptance, and otherwise not loaded."""
self._untrusted_preferences[(group, key)] = eval_func

Expand Down

0 comments on commit bfe541c

Please sign in to comment.