7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-05-29 20:30:48 +00:00
tutor/tutor/commands/context.py
Régis Behmo 0a670d7ead refactor: add type annotations
Annotations were generated with pyannotate:
https://github.com/dropbox/pyannotate

We are running in strict mode, which is awesome!

This affects a large part of the code base, which might be an issue for
people running a fork of Tutor. Nonetheless, the behavior should not be
affected. If anything, this process has helped find and resolve a few
type-related bugs. Thus, this is not considered as a breaking change.
2021-03-15 21:46:55 +01:00

18 lines
500 B
Python

from typing import Any, Dict
def unimplemented_docker_compose(
root: str, config: Dict[str, Any], *command: str
) -> int:
raise NotImplementedError
# pylint: disable=too-few-public-methods
class Context:
def __init__(self, root: str) -> None:
self.root = root
self.docker_compose_func = unimplemented_docker_compose
def docker_compose(self, root: str, config: Dict[str, Any], *command: str) -> int:
return self.docker_compose_func(root, config, *command)