<filename>core/recipe_sources/RecipeSource.py<gh_stars>0
from abc import ABCMeta, abstractmethod

from typing import List

from core.recipe_sources import Recipe


class RecipeSource(object):

    __metaclass__ = ABCMeta

    @abstractmethod
    def search_recipe(self, keyword, amount):
        # type: (str, int)->List(Recipe)
        pass

    @abstractmethod
    def get_recipe_instructions(self, recipe):
        # type: (int)->List(str)
        pass

<filename>core/recipe_sources/RecipeSource.py<gh_stars>0
from abc import ABCMeta, abstractmethod

from typing import List

from core.recipe_sources import Recipe


class RecipeSource(object):

    __metaclass__ = ABCMeta

    @abstractmethod
    def search_recipe(self, keyword, amount):
        # type: (str, int)->List(Recipe)
        pass

    @abstractmethod
    def get_recipe_instructions(self, recipe):
        # type: (int)->List(str)
        pass

# type: (str, int)->List(Recipe) # type: (int)->List(str)