object patch

This commit is contained in:
David Beazley
2020-05-28 17:52:19 -05:00
parent a83a9cf064
commit a31a9ee0f4
57 changed files with 558 additions and 40 deletions

View File

@@ -1,6 +1,6 @@
# portfolio.py
class Portfolio(object):
class Portfolio:
def __init__(self, holdings):
self._holdings = holdings

View File

@@ -1,6 +1,6 @@
# stock.py
class Stock(object):
class Stock:
'''
An instance of a stock holding consisting of name, shares, and price.
'''

View File

@@ -1,6 +1,6 @@
# tableformat.py
class TableFormatter(object):
class TableFormatter:
def headings(self, headers):
'''
Emit the table headers