Skip to content

Commit 33ee98d

Browse files
committed
Fix test to use Bool when calling type-bool type aliases.
1 parent 275b468 commit 33ee98d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_type_eval.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ def test_eval_bool_04():
11841184

11851185

11861186
type IsIntBool[T] = Bool[IsSub[T, int]]
1187-
type IsIntLiteral[T] = Literal[True] if IsIntBool[T] else Literal[False]
1187+
type IsIntLiteral[T] = Literal[True] if Bool[IsIntBool[T]] else Literal[False]
11881188

11891189

11901190
def test_eval_bool_05():
@@ -1231,7 +1231,7 @@ def test_eval_all_02():
12311231

12321232
type ContainsAllInt[Ts] = AllOf[*[IsSub[t, int] for t in Iter[Ts]]]
12331233
type ContainsAllIntToLiteral[Ts] = (
1234-
Literal[True] if ContainsAllInt[Ts] else Literal[False]
1234+
Literal[True] if Bool[ContainsAllInt[Ts]] else Literal[False]
12351235
)
12361236

12371237

@@ -1314,7 +1314,7 @@ def test_eval_any_02():
13141314

13151315
type ContainsAnyInt[Ts] = AnyOf[*[IsSub[t, int] for t in Iter[Ts]]]
13161316
type ContainsAnyIntToLiteral[Ts] = (
1317-
Literal[True] if ContainsAnyInt[Ts] else Literal[False]
1317+
Literal[True] if Bool[ContainsAnyInt[Ts]] else Literal[False]
13181318
)
13191319

13201320

0 commit comments

Comments
 (0)