chore: apply pre-commit hooks
This commit is contained in:
parent
35e710f9e4
commit
cb66f9da60
2 changed files with 6 additions and 4 deletions
|
@ -1,6 +1,8 @@
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
|
|
||||||
class Device:
|
class Device:
|
||||||
def __init__(self, host_path: str, container_path: str, cgroup_permissions: str = None):
|
def __init__(self, host_path: str, container_path: str, cgroup_permissions: Optional[str] = None):
|
||||||
self._host_path = host_path
|
self._host_path = host_path
|
||||||
self._container_path = container_path
|
self._container_path = container_path
|
||||||
self._cgroup_permissions = cgroup_permissions
|
self._cgroup_permissions = cgroup_permissions
|
||||||
|
|
|
@ -19,7 +19,7 @@ class Service:
|
||||||
extends: Optional[Extends] = None,
|
extends: Optional[Extends] = None,
|
||||||
cgroup_parent: Optional[str] = None,
|
cgroup_parent: Optional[str] = None,
|
||||||
container_name: Optional[str] = None,
|
container_name: Optional[str] = None,
|
||||||
devices: Optional[Device] = [],
|
devices: List[Device] = [],
|
||||||
env_file: List[str] = [],
|
env_file: List[str] = [],
|
||||||
expose: List[str] = [],
|
expose: List[str] = [],
|
||||||
profiles: List[str] = [],
|
profiles: List[str] = [],
|
||||||
|
|
Loading…
Reference in a new issue