def __init__(self):
self.typeclass = None
self.strict_level = None
self.header_list = None
self.value_list = None
self.__table_writer = ptw.RstSimpleTableWriter()
self.__table_writer._dp_extractor.type_value_mapping = {
NullString(None).typecode: '``""``',
NoneType(None).typecode: "``None``",
Infinity(None).typecode: '``Decimal("inf")``',
Nan(None).typecode: '``Decimal("nan")``',
}
self.__table_writer._dp_extractor.const_value_mapping = {
True: "``True``",
False: "``False``",
'``"127.0.0.1"``': '``ip_address("127.0.0.1")``',
}
评论列表
文章目录