lint: type annotations, ignoring report for now

This commit is contained in:
Iain Learmonth 2024-07-12 15:35:04 +01:00
parent 2d549fb823
commit 6e691257f7
3 changed files with 4 additions and 2 deletions

View file

@ -55,7 +55,7 @@ class Origin(AbstractConfiguration):
proxy.destroy() proxy.destroy()
@property @property
def normalised_domain_name(self): def normalised_domain_name(self) -> str:
extracted_domain = tldextract.extract(self.domain_name) extracted_domain = tldextract.extract(self.domain_name)
return extracted_domain.registered_domain return extracted_domain.registered_domain

View file

@ -1,3 +1,5 @@
# mypy: ignore-errors
from datetime import datetime, timedelta from datetime import datetime, timedelta
from flask import Blueprint, render_template from flask import Blueprint, render_template

View file

@ -79,7 +79,7 @@ class ProxyAutomation(TerraformAutomation):
raise NotImplementedError() raise NotImplementedError()
def enabled(self) -> bool: def enabled(self) -> bool:
return current_app.config.get(self.cloud_name.upper() + "_ENABLED", False) return bool(current_app.config.get(self.cloud_name.upper() + "_ENABLED", False))
def tf_prehook(self) -> Optional[Any]: # pylint: disable=useless-return def tf_prehook(self) -> Optional[Any]: # pylint: disable=useless-return
return None return None