@@ -151,15 +151,15 @@ def test_ModuleAnalyzer_find_attr_docs():
151151 ('Foo' , 'attr8' ),
152152 ('Foo' , 'attr9' ),
153153 }
154- assert docs [( 'Foo' , 'attr1' ) ] == ['comment before attr1' , '' ]
155- assert docs [( 'Foo' , 'attr3' ) ] == ['attribute comment for attr3' , '' ]
156- assert docs [( 'Foo' , 'attr4' ) ] == ['long attribute comment' , '' ]
157- assert docs [( 'Foo' , 'attr4' ) ] == ['long attribute comment' , '' ]
158- assert docs [( 'Foo' , 'attr5' ) ] == ['attribute comment for attr5' , '' ]
159- assert docs [( 'Foo' , 'attr6' ) ] == ['this comment is ignored' , '' ]
160- assert docs [( 'Foo' , 'attr7' ) ] == ['this comment is ignored' , '' ]
161- assert docs [( 'Foo' , 'attr8' ) ] == ['attribute comment for attr8' , '' ]
162- assert docs [( 'Foo' , 'attr9' ) ] == ['string after attr9' , '' ]
154+ assert docs ['Foo' , 'attr1' ] == ['comment before attr1' , '' ]
155+ assert docs ['Foo' , 'attr3' ] == ['attribute comment for attr3' , '' ]
156+ assert docs ['Foo' , 'attr4' ] == ['long attribute comment' , '' ]
157+ assert docs ['Foo' , 'attr4' ] == ['long attribute comment' , '' ]
158+ assert docs ['Foo' , 'attr5' ] == ['attribute comment for attr5' , '' ]
159+ assert docs ['Foo' , 'attr6' ] == ['this comment is ignored' , '' ]
160+ assert docs ['Foo' , 'attr7' ] == ['this comment is ignored' , '' ]
161+ assert docs ['Foo' , 'attr8' ] == ['attribute comment for attr8' , '' ]
162+ assert docs ['Foo' , 'attr9' ] == ['string after attr9' , '' ]
163163 assert analyzer .tagorder == {
164164 'Foo' : 0 ,
165165 'Foo.__init__' : 8 ,
@@ -189,5 +189,5 @@ def test_ModuleAnalyzer_find_attr_docs_for_posonlyargs_method():
189189 analyzer = ModuleAnalyzer .for_string (code , 'module' )
190190 docs = analyzer .find_attr_docs ()
191191 assert set (docs ) == {('Foo' , 'attr' )}
192- assert docs [( 'Foo' , 'attr' ) ] == ['attribute comment' , '' ]
192+ assert docs ['Foo' , 'attr' ] == ['attribute comment' , '' ]
193193 assert analyzer .tagorder == {'Foo' : 0 , 'Foo.__init__' : 1 , 'Foo.attr' : 2 }
0 commit comments