File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -896,7 +896,7 @@ def test_uppercase_never():
896896
897897def test_never_is ():
898898 d = eval_typing (IsSub [Never , Never ])
899- assert d is True
899+ assert d == LiteralGeneric [ True ]
900900
901901
902902def test_eval_iter_01 ():
@@ -1052,7 +1052,9 @@ def test_eval_literal_idempotent_01():
10521052
10531053
10541054def test_is_literal_true_vs_one ():
1055- assert eval_typing (IsSub [Literal [True ], Literal [1 ]]) is False
1055+ assert (
1056+ eval_typing (IsSub [Literal [True ], Literal [1 ]]) == LiteralGeneric [False ]
1057+ )
10561058
10571059
10581060def test_callable_to_signature_01 ():
@@ -1220,7 +1222,7 @@ class AnnoTest:
12201222
12211223def test_type_eval_annotated_02 ():
12221224 res = eval_typing (IsSub [GetAttr [AnnoTest , Literal ["a" ]], int ])
1223- assert res is True
1225+ assert res == LiteralGeneric [ True ]
12241226
12251227
12261228def test_type_eval_annotated_03 ():
You can’t perform that action at this time.
0 commit comments