Skip to content

Commit 3255758

Browse files
authored
Merge pull request #50 from tomsch420/main
[Match] Hotfix for EntityType
2 parents 274cc1c + 5840fd6 commit 3255758

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/krrood/entity_query_language/entity.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from dataclasses import dataclass, field
44
from functools import cached_property
55

6-
from black.strings import Match
76

87
from .hashed_data import T
98
from .symbol_graph import SymbolGraph
@@ -25,6 +24,7 @@
2524
Tuple,
2625
List,
2726
Callable,
27+
TypeVar,
2828
)
2929

3030
from .symbolic import (
@@ -55,12 +55,14 @@
5555
HasType,
5656
)
5757

58-
5958
ConditionType = Union[SymbolicExpression, bool, Predicate]
6059
"""
6160
The possible types for conditions.
6261
"""
63-
EntityType = Union[SetOf[T], Entity[T], T, Iterable[T], Type[T], Match[T]]
62+
63+
EntityType = Union[
64+
SetOf[T], Entity[T], T, Iterable[T], Type[T]
65+
] # include Match[T] after moving match to a module @bass
6466
"""
6567
The possible types for entities.
6668
"""

0 commit comments

Comments
 (0)