Is there a way to do the following in python2.7:
class DailyPriceObj:
def __init__(self):
self.date = None #datetime.date
self.sd_buy = None # float
self.hd_buy = None # float
self.sd_rent = None # float
self.hd_rent = None # float
self.revenue = None # float
I've used typing in later versions, but for a certain project the codebase is 2.7
.