We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93c2211 commit 53be5e1Copy full SHA for 53be5e1
dargs/dargs.py
@@ -67,13 +67,10 @@ def reorg_dtype(self):
67
if isinstance(self.dtype, type) or self.dtype is None:
68
self.dtype = [self.dtype]
69
# remove duplicate
70
- self.dtype = set(self.dtype)
+ self.dtype = {dt if type(dt) is type else type(dt) for dt in self.dtype}
71
# check conner cases
72
if self.sub_fields or self.sub_variants:
73
self.dtype.add(list if self.repeat else dict)
74
- if None in self.dtype:
75
- self.dtype.remove(None)
76
- self.dtype.add(type(None))
77
# and make it compatible with `isinstance`
78
self.dtype = tuple(self.dtype)
79
0 commit comments