Fix up python-3.5 type syntax.

This commit is contained in:
Mike Auty
2018-12-17 09:09:34 +00:00
parent b61ac3bd47
commit 76e81eb478
2 changed files with 6 additions and 6 deletions
@@ -21,9 +21,9 @@ class SymbolBannerCache(interfaces.automagic.AutomagicInterface):
# The user would run it eventually either way, but running it first means it can be used that run
priority = 0
os: Optional[str] = None
symbol_name: str = "banner_name"
banner_path: Optional[str] = None
os = None # type: Optional[str]
symbol_name = "banner_name" # type: str
banner_path = None # type: Optional[str]
@classmethod
def load_banners(cls) -> BannersType:
@@ -13,9 +13,9 @@ class SymbolFinder(interfaces.automagic.AutomagicInterface):
"""Symbol loader based on signature strings"""
priority = 40
banner_config_key: str = "banner"
banner_cache: Optional[Type[symbol_cache.SymbolBannerCache]] = None
symbol_class: Optional[str] = None
banner_config_key = "banner" # type: str
banner_cache = None # type: Optional[Type[symbol_cache.SymbolBannerCache]]
symbol_class = None # type: Optional[str]
def __init__(self, context: interfaces.context.ContextInterface, config_path: str) -> None:
super().__init__(context, config_path)