chore: implement TypeError in init of Extends

This commit is contained in:
Xyphuz 2022-05-18 15:26:03 +08:00
parent d1ae549d48
commit 01aeb56189

View file

@ -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
return self._service_name
@property
def from_file(self):
return self._from_file