【发布时间】:2020-02-21 13:19:27
【问题描述】:
我在我的 pySpark 程序的 pyCharm 中创建了一个单元测试类。
class TableLiteral(unittest.TestCase):
def __init__(self, table_value):
self.table_value = [x.strip().strip("|") for x in table_value.split("\n") if x.strip() != '']
# The above code is as part of my development
现在,我唯一担心的是 __init_ 正在突出显示对超类的 __init_ 的警告调用丢失。您能否更新我必须更新的地方,因为我是 python 类的新手。
【问题讨论】:
标签: python pyspark superclass