tools/spec: add instance variable type hints for Registry
This commit is contained in:
parent
ad67137abc
commit
336e9632d3
@ -14,15 +14,14 @@ def rename(name: str):
|
|||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
class Registry:
|
class Registry:
|
||||||
|
types: Dict[str, object] = {}
|
||||||
|
extensions: Dict = {}
|
||||||
|
features: Dict = {}
|
||||||
|
applied: Set = set()
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.types = {}
|
|
||||||
self.extensions = {}
|
|
||||||
self.features = {}
|
|
||||||
|
|
||||||
self.types['API Constants'] = Unscoped('API Constants')
|
self.types['API Constants'] = Unscoped('API Constants')
|
||||||
|
|
||||||
self.applied = set()
|
|
||||||
|
|
||||||
def _serialise(self, name: str, queued: Set[str]):
|
def _serialise(self, name: str, queued: Set[str]):
|
||||||
if name in queued:
|
if name in queued:
|
||||||
return []
|
return []
|
||||||
|
Loading…
Reference in New Issue
Block a user