1
0
Fork 0
forked from s3lph/matemat

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 self._price_non_member: int = 0
raise NotImplementedError('This shoudt not be called!') raise NotImplementedError('This shoudt not be called!')
def __init__(self, # def __init__(self,
product_id: int, # product_id: int,
name: str, # name: str,
price_member: int, # price_member: int,
price_non_member: int): # price_non_member: int):
if product_id == -1: # if product_id == -1:
raise ValueError('Invalid product ID') # raise ValueError('Invalid product ID')
self._product_id: int = product_id # self._product_id: int = product_id
self._name: str = name # self._name: str = name
self._price_member: int = price_member # self._price_member: int = price_member
self._price_non_member: int = price_non_member # self._price_non_member: int = price_non_member
@property @property
def id(self) -> int: def id(self) -> int: