@@ -28,8 +28,7 @@ def test_attrs_model(imp, dec):
2828 Test `attrs` classes together with a non-`attrs` class that has a class var of the same type.
2929 `attrs` classes are instantiated using different dataclass decorators. The `attrs` module is imported as whole.
3030 """
31- example = textwrap .dedent (
32- f'''
31+ example = textwrap .dedent (f'''
3332 { imp }
3433 from decimal import Decimal
3534
@@ -43,8 +42,7 @@ class Y:
4342
4443 class Z:
4544 x: Decimal
46- '''
47- )
45+ ''' )
4846 assert _get_error (example , error_code_filter = 'TC001,TC002,TC003' ) == set ()
4947
5048
@@ -65,8 +63,7 @@ def test_complex_attrs_model(imp, dec, expected):
6563 Test `attrs` classes together with a non-`attrs` class tha has a class var of another type.
6664 `attrs` classes are instantiated using different dataclass decorators. The `attrs` module is imported as whole.
6765 """
68- example = textwrap .dedent (
69- f'''
66+ example = textwrap .dedent (f'''
7067 { imp }
7168 from decimals import Decimal
7269 from decimal import Context
@@ -81,8 +78,7 @@ class Y:
8178
8279 class Z:
8380 x: Context
84- '''
85- )
81+ ''' )
8682 assert _get_error (example , error_code_filter = 'TC001,TC002,TC003' ) == expected
8783
8884
@@ -103,8 +99,7 @@ def test_complex_attrs_model_direct_import(imp, dec, expected):
10399 Test `attrs` classes together with a non-`attrs` class tha has a class var of another type.
104100 `attrs` classes are instantiated using different dataclass decorators which are imported as submodules.
105101 """
106- example = textwrap .dedent (
107- f'''
102+ example = textwrap .dedent (f'''
108103 { imp }
109104 from decimals import Decimal
110105 from decimal import Context
@@ -119,8 +114,7 @@ class Y:
119114
120115 class Z:
121116 x: Context
122- '''
123- )
117+ ''' )
124118 assert _get_error (example , error_code_filter = 'TC001,TC002,TC003' ) == expected
125119
126120
@@ -150,8 +144,7 @@ def test_complex_attrs_model_as_import(imp, dec, expected):
150144 `attrs` classes are instantiated using different dataclass
151145 decorators which are imported as submodules using an alias.
152146 """
153- example = textwrap .dedent (
154- f'''
147+ example = textwrap .dedent (f'''
155148 { imp }
156149 from decimals import Decimal
157150 from decimal import Context
@@ -166,8 +159,7 @@ class Y:
166159
167160 class Z:
168161 x: Context
169- '''
170- )
162+ ''' )
171163 assert _get_error (example , error_code_filter = 'TC001,TC002,TC003' ) == expected
172164
173165
@@ -193,8 +185,7 @@ def test_complex_attrs_model_slots_frozen(imp, dec, expected):
193185 Test `attrs` classes together with a non-`attrs` class tha has a class var of another type.
194186 `attrs` classes are instantiated using different dataclass decorators and arguments.
195187 """
196- example = textwrap .dedent (
197- f'''
188+ example = textwrap .dedent (f'''
198189 { imp }
199190 from decimals import Decimal
200191 from decimal import Context
@@ -209,6 +200,5 @@ class Y:
209200
210201 class Z:
211202 x: Context
212- '''
213- )
203+ ''' )
214204 assert _get_error (example , error_code_filter = 'TC001,TC002,TC003' ) == expected
0 commit comments