def __init__(self, id): self.id = id info = employee_database.get_employee_info(self.id) self.name = info.get('name') self.address = get_employee_address(self.id) self._role = get_role(info.get('role')) self._payroll = get_policy(self.id)
def __init__(self, id) -> None: self.id = id info = employee_database.get_employee_info(self.id) self.name = info.get("name") self.address = get_employee_address(self.id) self._role = get_role(info.get("role")) self._payroll = get_policy(self.id)