From 01aeb56189e1bf3c53889cacf4c7ef7588792702 Mon Sep 17 00:00:00 2001 From: Xyphuz Date: Wed, 18 May 2022 15:26:03 +0800 Subject: [PATCH] chore: implement TypeError in init of Extends --- compose_viz/extends.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/compose_viz/extends.py b/compose_viz/extends.py index 0ec2903..fb3af9f 100644 --- a/compose_viz/extends.py +++ b/compose_viz/extends.py @@ -1,12 +1,12 @@ class Extends: - def __init__(self, from_file: str, service_name: str): - self._from_file = from_file + def __init__(self, service_name: str, from_file: str = None): self._service_name = service_name - - @property - def from_file(self): - return self._from_file + self._from_file = from_file @property def service_name(self): - return self._service_name \ No newline at end of file + return self._service_name + + @property + def from_file(self): + return self._from_file \ No newline at end of file