Applied auto pep 8 changes
This commit is contained in:
@ -1,13 +1,14 @@
|
||||
from product import Product
|
||||
|
||||
|
||||
class CarPart(Product):
|
||||
'''
|
||||
Constructor for a car part
|
||||
|
||||
Contains additional information that is only relevant for car parts
|
||||
'''
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.make = ""
|
||||
self.compatibleVehicles = list()
|
||||
|
@ -1,9 +1,11 @@
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
class Product:
|
||||
'''
|
||||
Base class for a product
|
||||
'''
|
||||
|
||||
def __init__(self):
|
||||
self.id = 0
|
||||
self.name = ""
|
||||
@ -20,7 +22,8 @@ class Product:
|
||||
|
||||
No additional properties are assigned to the customer
|
||||
'''
|
||||
def __init__(self, name: str, image: str, description: str, cost: float, category: int,
|
||||
|
||||
def __init__(self, name: str, image: str, description: str, cost: float, category: int,
|
||||
seller_id: int, posted_date: datetime, quantity_available: int):
|
||||
self.id = 0
|
||||
self.name = name
|
||||
@ -31,4 +34,3 @@ class Product:
|
||||
self.sellerID = seller_id
|
||||
self.postedDate = posted_date
|
||||
self.quantityAvailable = quantity_available
|
||||
|
Reference in New Issue
Block a user