auto/terraform: typing hints for base terraform module

This commit is contained in:
Iain Learmonth 2022-05-16 10:08:18 +01:00
parent ccf0ce6a06
commit 51f580a304
4 changed files with 35 additions and 16 deletions

View file

@ -1,10 +1,11 @@
from abc import ABCMeta, abstractmethod
import os
from typing import Tuple
from app import app
class BaseAutomation:
class BaseAutomation(metaclass=ABCMeta):
short_name: str = "base"
description: str = "Abstract base automation."
frequency: int
@ -14,6 +15,7 @@ class BaseAutomation:
the portal system.
"""
@abstractmethod
def automate(self, full: bool = False) -> Tuple[bool, str]:
raise NotImplementedError()