aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/pattern_tree.py
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-09-12 13:55:35 +0200
committerWojtek Kosior <koszko@koszko.org>2022-09-12 13:59:14 +0200
commit7f1c2a61135a2e21e960fa5801f3ae852bfb24ad (patch)
tree1361db0aae4cbbae0c94ebaa6b88ac7a49b3d8e0 /src/hydrilla/pattern_tree.py
parentce5d42ad784f42a6b51c60cc4fcfe9c6c04d7729 (diff)
downloadhaketilo-hydrilla-7f1c2a61135a2e21e960fa5801f3ae852bfb24ad.tar.gz
haketilo-hydrilla-7f1c2a61135a2e21e960fa5801f3ae852bfb24ad.zip
[proxy] Add support for script blocking/allowing rules
Diffstat (limited to 'src/hydrilla/pattern_tree.py')
-rw-r--r--src/hydrilla/pattern_tree.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hydrilla/pattern_tree.py b/src/hydrilla/pattern_tree.py
index e71f8d0..f606bc6 100644
--- a/src/hydrilla/pattern_tree.py
+++ b/src/hydrilla/pattern_tree.py
@@ -198,7 +198,7 @@ TreeStoredType = t.TypeVar('TreeStoredType', bound=t.Hashable)
StoredSet = frozenset[StoredTreeItem[TreeStoredType]]
PathBranch = PatternTreeBranch[StoredSet]
DomainBranch = PatternTreeBranch[PathBranch]
-TreeRoot = Map[tuple[str, int], DomainBranch]
+TreeRoot = Map[tuple[str, t.Optional[int]], DomainBranch]
@dc.dataclass(frozen=True)
class PatternTree(t.Generic[TreeStoredType]):
@@ -210,7 +210,7 @@ class PatternTree(t.Generic[TreeStoredType]):
"""
SelfType = t.TypeVar('SelfType', bound='PatternTree[TreeStoredType]')
- _by_scheme_and_port: TreeRoot = Map()
+ _by_scheme_and_port: TreeRoot = Map()
def _register(
self: 'SelfType',