Add type annotations

Signed-off-by: gabor-mezei-arm <gabor.mezei@arm.com>
This commit is contained in:
gabor-mezei-arm 2021-06-23 17:01:44 +02:00
parent 43110b6b2c
commit 7b5c4e2db3
No known key found for this signature in database
GPG key ID: 106F5A41ECC305BD

View file

@ -250,9 +250,9 @@ class StorageFormat:
generate backward compatibility test cases which inject a key
representation and check that it can be read and used.
"""
self.constructors = info.constructors
self.version = version
self.forward = forward
self.constructors = info.constructors #type: macro_collector.PSAMacroEnumerator
self.version = version #type: int
self.forward = forward #type: bool
def make_test_case(self, key: StorageKey) -> test_case.TestCase:
"""Construct a storage format test case for the given key.