This commit is contained in:
Michael Carlstrom 2024-07-26 10:43:27 -04:00
parent e98fb5a10e
commit 479dffd98e

View File

@ -1054,7 +1054,7 @@ def test_typevar_object():
assert len(m.TypeVarObject.__type_params__) == 1
type_var = m.TypeVarObject.__type_params__[0]
assert type_var.__name__ == "T"
assert type_var.__bound__ == None
assert type_var.__bound__ is None
assert type_var.__constraints__ == ()
assert len(m.TypeVarObjectBound.__type_params__) == 1
@ -1066,7 +1066,7 @@ def test_typevar_object():
assert len(m.TypeVarObjectConstraints.__type_params__) == 1
type_var = m.TypeVarObjectConstraints.__type_params__[0]
assert type_var.__name__ == "T"
assert type_var.__bound__ == None
assert type_var.__bound__ is None
assert type_var.__constraints__ == ("hi", 3)