GitLab CI: Use buster instead of stretch.

This commit is contained in:
s3lph 2018-05-29 23:16:28 +02:00
parent 6127872bd6
commit 1439c3072c

View file

@ -12,17 +12,17 @@ class Product(object):
self._price_non_member: int = 0
raise NotImplementedError('This shoudt not be called!')
def __init__(self,
product_id: int,
name: str,
price_member: int,
price_non_member: int):
if product_id == -1:
raise ValueError('Invalid product ID')
self._product_id: int = product_id
self._name: str = name
self._price_member: int = price_member
self._price_non_member: int = price_non_member
# def __init__(self,
# product_id: int,
# name: str,
# price_member: int,
# price_non_member: int):
# if product_id == -1:
# raise ValueError('Invalid product ID')
# self._product_id: int = product_id
# self._name: str = name
# self._price_member: int = price_member
# self._price_non_member: int = price_non_member
@property
def id(self) -> int: