forked from s3lph/matemat
GitLab CI: Use buster instead of stretch.
This commit is contained in:
parent
6127872bd6
commit
1439c3072c
1 changed files with 11 additions and 11 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue