Add type hint for Registry.display_applications

This commit is contained in:
davelopez
2021-02-16 14:24:44 +01:00
parent e267111f57
commit 32100cfcd7
+2 -1
View File
@@ -6,6 +6,7 @@ import imp
import logging
import os
from string import Template
from typing import Dict
import yaml
@@ -57,7 +58,7 @@ class Registry:
# tool shed repositories that contain display applications.
self.proprietary_display_app_containers = []
# Map a display application id to a display application
self.display_applications = {}
self.display_applications: Dict[str, DisplayApplication] = {}
# The following 2 attributes are used in the to_xml_file()
# method to persist the current state into an xml file.
self.display_path_attr = None