From 336e9632d3f59c14f7d320c0b7cffaf1cae2b56b Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sat, 5 Jan 2019 15:22:09 +1100 Subject: [PATCH] tools/spec: add instance variable type hints for Registry --- tools/spec.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tools/spec.py b/tools/spec.py index de0028d..25e1ca0 100644 --- a/tools/spec.py +++ b/tools/spec.py @@ -14,15 +14,14 @@ def rename(name: str): ############################################################################### class Registry: + types: Dict[str, object] = {} + extensions: Dict = {} + features: Dict = {} + applied: Set = set() + def __init__(self): - self.types = {} - self.extensions = {} - self.features = {} - self.types['API Constants'] = Unscoped('API Constants') - self.applied = set() - def _serialise(self, name: str, queued: Set[str]): if name in queued: return []