@@ -278,27 +278,25 @@ def strlen(y: str) -> int:
278278 def identity (z ):
279279 return z
280280
281- assert attr .converters .pipe (int2str ).converter . __annotations__ == {
281+ assert attr .converters .pipe (int2str ).__annotations__ == {
282282 "val" : int ,
283283 "return" : str ,
284284 }
285- assert attr .converters .pipe (
286- int2str , strlen
287- ).converter .__annotations__ == {
285+ assert attr .converters .pipe (int2str , strlen ).__annotations__ == {
288286 "val" : int ,
289287 "return" : int ,
290288 }
291- assert attr .converters .pipe (
292- identity , strlen
293- ). converter . __annotations__ == { "return" : int }
294- assert attr .converters .pipe (
295- int2str , identity
296- ). converter . __annotations__ == { "val" : int }
289+ assert attr .converters .pipe (identity , strlen ). __annotations__ == {
290+ "return" : int
291+ }
292+ assert attr .converters .pipe (int2str , identity ). __annotations__ == {
293+ "val" : int
294+ }
297295
298296 def int2str_ (x : int , y : int = 0 ) -> str :
299297 return str (x )
300298
301- assert attr .converters .pipe (int2str_ ).converter . __annotations__ == {
299+ assert attr .converters .pipe (int2str_ ).__annotations__ == {
302300 "val" : int ,
303301 "return" : str ,
304302 }
@@ -310,19 +308,19 @@ def test_pipe_empty(self):
310308
311309 p = attr .converters .pipe ()
312310
313- assert "val" in p .converter . __annotations__
311+ assert "val" in p .__annotations__
314312
315- t = p .converter . __annotations__ ["val" ]
313+ t = p .__annotations__ ["val" ]
316314
317315 assert isinstance (t , typing .TypeVar )
318- assert p .converter . __annotations__ == {"val" : t , "return" : t }
316+ assert p .__annotations__ == {"val" : t , "return" : t }
319317
320318 def test_pipe_non_introspectable (self ):
321319 """
322320 pipe() doesn't crash when passed a non-introspectable converter.
323321 """
324322
325- assert attr .converters .pipe (print ).converter . __annotations__ == {}
323+ assert attr .converters .pipe (print ).__annotations__ == {}
326324
327325 def test_pipe_nullary (self ):
328326 """
@@ -332,7 +330,7 @@ def test_pipe_nullary(self):
332330 def noop ():
333331 pass
334332
335- assert attr .converters .pipe (noop ).converter . __annotations__ == {}
333+ assert attr .converters .pipe (noop ).__annotations__ == {}
336334
337335 def test_optional (self ):
338336 """
0 commit comments