Fixed all pep8 warnings
This commit is contained in:
@ -23,8 +23,10 @@ class Product:
|
||||
No additional properties are assigned to the customer
|
||||
'''
|
||||
|
||||
def __init__(self, name: str, image: str, description: str, cost: float, category: int,
|
||||
seller_id: int, posted_date: datetime, quantity_available: 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
|
||||
self.image = image
|
||||
|
@ -2,11 +2,14 @@ from abc import ABC
|
||||
|
||||
|
||||
class User(ABC):
|
||||
""" Functional Class constructor to initialise all properties in the base object
|
||||
with a value """
|
||||
""" Functional Class constructor to initialise all properties in
|
||||
the base object with a value
|
||||
"""
|
||||
|
||||
def __init__(self, username: str, password: str, firstname: str,
|
||||
lastname: str, email: str, phone: str, role: str):
|
||||
def __init__(self, username: str, password: str,
|
||||
firstname: str, lastname: str,
|
||||
email: str, phone: str, role: str
|
||||
):
|
||||
self.id = 0
|
||||
self.username = username
|
||||
self.password = password
|
||||
|
Reference in New Issue
Block a user