Skip to content
Snippets Groups Projects
Commit d0ff9ce0 authored by Filippo Cremonese's avatar Filippo Cremonese
Browse files

Add type hint to Action.config

parent 091add01
No related branches found
No related tags found
No related merge requests found
......@@ -5,13 +5,15 @@ from typing import Set
from loguru import logger
from .util import run_script
# Only used for type hints, package-relative import not possible due to circular reference
import orchestra.model.configuration
class Action:
def __init__(self, name, build, script, config):
self.name = name
self.build = build
self.config = config
self.config: "orchestra.model.configuration.Configuration" = config
self.external_dependencies: Set[Action] = set()
self._script = script
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment