@@ -130,7 +130,6 @@ def test_writing_reading_example_aas(self) -> None:
130130
131131class AASXReaderTest (unittest .TestCase ):
132132 def _create_test_aasx (self ) -> str :
133- """create a temporary AASX file using the AASXWriter (tested before) and return its filename"""
134133 data = example_aas .create_full_example ()
135134 files = aasx .DictSupplementaryFileContainer ()
136135
@@ -188,21 +187,18 @@ def test_read_into(self) -> None:
188187 filename = self ._create_test_aasx ()
189188
190189 try :
191- objects = model .DictObjectStore ()
190+ objects : model . DictObjectStore [ model . Identifiable ] = model .DictObjectStore ()
192191 files = aasx .DictSupplementaryFileContainer ()
193192
194193 with warnings .catch_warnings (record = True ) as w :
195194 with aasx .AASXReader (filename ) as reader :
196195 ids = reader .read_into (objects , files )
197196
198197 assert isinstance (w , list )
199- self .assertEqual (0 , len (w )) #Ensure no warnings were raised
198+ self .assertEqual (0 , len (w )) # Ensure no warnings were raised
200199
201- # Objects populated
202- self .assertGreater (len (ids ), 0 ) #Ensure at least one AAS was read
203- self .assertGreater (len (objects ), 0 ) #Ensure objects were populated
204-
205- # Files populated
200+ self .assertGreater (len (ids ), 0 ) # Ensure at least one AAS was read
201+ self .assertGreater (len (objects ), 0 ) # Ensure objects were populated
206202 self .assertGreater (len (files ), 0 )
207203 self .assertEqual (
208204 files .get_content_type ("/TestFile.pdf" ),
@@ -215,7 +211,7 @@ def test_supplementary_file_integrity(self) -> None:
215211 filename = self ._create_test_aasx ()
216212
217213 try :
218- objects = model .DictObjectStore ()
214+ objects : model . DictObjectStore [ model . Identifiable ] = model .DictObjectStore ()
219215 files = aasx .DictSupplementaryFileContainer ()
220216
221217 with aasx .AASXReader (filename ) as reader :
@@ -229,4 +225,4 @@ def test_supplementary_file_integrity(self) -> None:
229225 "78450a66f59d74c073bf6858db340090ea72a8b1"
230226 )
231227 finally :
232- os .unlink (filename )
228+ os .unlink (filename )
0 commit comments