|
23 | 23 | Expression, |
24 | 24 | NameExpr, |
25 | 25 | ) |
26 | | -from mypy.options import Options |
27 | 26 | from mypy.plugins.common import find_shallow_matching_overload_item |
28 | 27 | from mypy.state import state |
29 | 28 | from mypy.subtypes import is_more_precise, is_proper_subtype, is_same_type, is_subtype |
@@ -130,17 +129,13 @@ def test_callable_type_with_var_args(self) -> None: |
130 | 129 | ) |
131 | 130 | assert_equal(str(c3), "def (X? =, *Y?) -> Any") |
132 | 131 |
|
133 | | - def test_tuple_type_upper(self) -> None: |
134 | | - options = Options() |
135 | | - options.force_uppercase_builtins = True |
136 | | - assert_equal(TupleType([], self.fx.std_tuple).str_with_options(options), "Tuple[()]") |
137 | | - assert_equal(TupleType([self.x], self.fx.std_tuple).str_with_options(options), "Tuple[X?]") |
138 | | - assert_equal( |
139 | | - TupleType( |
140 | | - [self.x, AnyType(TypeOfAny.special_form)], self.fx.std_tuple |
141 | | - ).str_with_options(options), |
142 | | - "Tuple[X?, Any]", |
143 | | - ) |
| 132 | + def test_tuple_type_str(self) -> None: |
| 133 | + t1 = TupleType([], self.fx.std_tuple) |
| 134 | + assert_equal(str(t1), "tuple[()]") |
| 135 | + t2 = TupleType([self.x], self.fx.std_tuple) |
| 136 | + assert_equal(str(t2), "tuple[X?]") |
| 137 | + t3 = TupleType([self.x, AnyType(TypeOfAny.special_form)], self.fx.std_tuple) |
| 138 | + assert_equal(str(t3), "tuple[X?, Any]") |
144 | 139 |
|
145 | 140 | def test_type_variable_binding(self) -> None: |
146 | 141 | assert_equal( |
|
0 commit comments