summaryrefslogtreecommitdiff
path: root/acl.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2021-07-11 10:16:07 -0700
committerScott Gasch <[email protected]>2021-07-11 10:16:07 -0700
commita838c154135b2420d9047a101caf24a2c9f593c2 (patch)
treefbb0f6a0e66b4826352003d67f6e20bbcda0dda4 /acl.py
parent7d7a3ce0abb26766e82c6dfed8a196baa63b736a (diff)
Random cleanups and type safety. Created ml subdir.
Diffstat (limited to 'acl.py')
-rw-r--r--acl.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/acl.py b/acl.py
index e6bb903..9155090 100644
--- a/acl.py
+++ b/acl.py
@@ -5,7 +5,7 @@ import enum
import fnmatch
import logging
import re
-from typing import Any, Callable, List, Optional, Set
+from typing import Any, Callable, List, Optional, Set, Sequence
# This module is commonly used by others in here and should avoid
# taking any unnecessary dependencies back on them.
@@ -134,8 +134,8 @@ class PredicateListBasedACL(SimpleACL):
"""An ACL that allows or denies by applying predicates."""
def __init__(self,
*,
- allow_predicate_list: List[Callable[[Any], bool]] = None,
- deny_predicate_list: List[Callable[[Any], bool]] = None,
+ allow_predicate_list: Sequence[Callable[[Any], bool]] = None,
+ deny_predicate_list: Sequence[Callable[[Any], bool]] = None,
order_to_check_allow_deny: Order,
default_answer: bool) -> None:
super().__init__(