Updated line endings to be in line with UNIX style

This commit is contained in:
2024-01-28 11:59:04 +00:00
parent 3eea1d946a
commit 5a20a8d7c0
46 changed files with 2536 additions and 2536 deletions

View File

@ -1,15 +1,15 @@
from .user import User
class Admin(User):
'''
Class constructor to instatiate an admin object
No additional properties are assigned to the admin
'''
def __init__(self, username: str, password: str, firstname: str,
lastname: str, email: str, phone: str):
super().__init__(
username, password, firstname, lastname, email, phone, "Admin"
)
from .user import User
class Admin(User):
'''
Class constructor to instatiate an admin object
No additional properties are assigned to the admin
'''
def __init__(self, username: str, password: str, firstname: str,
lastname: str, email: str, phone: str):
super().__init__(
username, password, firstname, lastname, email, phone, "Admin"
)

View File

@ -1,15 +1,15 @@
from .user import User
class Customer(User):
'''
Class constructor to instatiate a customer object
No additional properties are assigned to the customer
'''
def __init__(self, username: str, password: str, firstname: str,
lastname: str, email: str, phone: str):
super().__init__(
username, password, firstname, lastname, email, phone, "Customer"
)
from .user import User
class Customer(User):
'''
Class constructor to instatiate a customer object
No additional properties are assigned to the customer
'''
def __init__(self, username: str, password: str, firstname: str,
lastname: str, email: str, phone: str):
super().__init__(
username, password, firstname, lastname, email, phone, "Customer"
)

View File

@ -1,16 +1,16 @@
from .user import User
class Seller(User):
'''
Class constructor to instatiate a customer object
No additional properties are assigned to the customer
'''
def __init__(self, username: str, password: str, firstname: str,
lastname: str, email: str, phone: str):
super().__init__(
username, password, firstname, lastname, email, phone, "Seller"
)
self.store = ""
from .user import User
class Seller(User):
'''
Class constructor to instatiate a customer object
No additional properties are assigned to the customer
'''
def __init__(self, username: str, password: str, firstname: str,
lastname: str, email: str, phone: str):
super().__init__(
username, password, firstname, lastname, email, phone, "Seller"
)
self.store = ""

View File

@ -1,20 +1,20 @@
from abc import ABC
class User(ABC):
""" 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
):
self.id = 0
self.username = username
self.password = password
self.firstName = firstname
self.lastName = lastname
self.email = email
self.phone = phone
self.role = role
from abc import ABC
class User(ABC):
""" 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
):
self.id = 0
self.username = username
self.password = password
self.firstName = firstname
self.lastName = lastname
self.email = email
self.phone = phone
self.role = role