summaryrefslogtreecommitdiff
path: root/python/associateddatastore.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-06-07 09:59:54 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-05 10:08:09 -0400
commit61b4bb24e06aa955484293d35fa926c07887544b (patch)
tree29c6b7fecdac6270681260637439926ec07a259e /python/associateddatastore.py
parent75f2463a46cc666e87120f3a30332fa80020b62e (diff)
Add type hints to basicblock.py, lowlevelil.py, architecture.py
Diffstat (limited to 'python/associateddatastore.py')
-rw-r--r--python/associateddatastore.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/associateddatastore.py b/python/associateddatastore.py
index 7c572ebf..fe09d9c0 100644
--- a/python/associateddatastore.py
+++ b/python/associateddatastore.py
@@ -19,16 +19,16 @@
# IN THE SOFTWARE.
import copy
-
+from typing import Any
class _AssociatedDataStore(dict):
_defaults = {}
@classmethod
- def set_default(cls, name, value):
+ def set_default(cls, name:str, value:Any):
cls._defaults[name] = value
- def __getattr__(self, name):
+ def __getattr__(self, name:str) -> Any:
if name in self.__dict__:
return self.__dict__[name]
if name not in self:
@@ -38,8 +38,8 @@ class _AssociatedDataStore(dict):
return result
return self.__getitem__(name)
- def __setattr__(self, name, value):
+ def __setattr__(self, name:str, value:Any):
self.__setitem__(name, value)
- def __delattr__(self, name):
+ def __delattr__(self, name:str):
self.__delitem__(name)