2
2
from abc import ABCMeta
3
3
import numpy as np
4
4
5
- __all__ = ['d_of_l' , 'd_of_f' , 'd_of_i' ,
6
- 'd_of_d_of_l' , 'd_of_d_of_f' ,
7
- 'attrdict' ]
5
+ __all__ = [
6
+ 'd_of_sth' , 'attrdict' ,
7
+ 'd_of_l' , 'd_of_f' , 'd_of_i' , 'd_of_d' ,
8
+ 'd_of_d_of_l' , 'd_of_d_of_f' , 'd_of_d_of_d' ,
9
+ 'd_of_d_of_d_of_d' , 'd_of_d_of_d_of_d_of_d' ,
10
+ ]
8
11
9
12
10
13
class BetterDict (dict ):
@@ -77,6 +80,13 @@ def __init__(self, *args, **kwargs):
77
80
super ().__init__ (int , * args , ** kwargs )
78
81
79
82
83
+ class d_of_d (d_of_sth ):
84
+ def __init__ (self , * args , ** kwargs ):
85
+ super ().__init__ (defaultdict , * args , ** kwargs )
86
+
87
+
88
+ ##########
89
+
80
90
class d_of_d_of_l (d_of_sth ):
81
91
def __init__ (self , * args , ** kwargs ):
82
92
super ().__init__ (d_of_l , * args , ** kwargs )
@@ -85,3 +95,20 @@ def __init__(self, *args, **kwargs):
85
95
class d_of_d_of_f (d_of_sth ):
86
96
def __init__ (self , * args , ** kwargs ):
87
97
super ().__init__ (d_of_f , * args , ** kwargs )
98
+
99
+
100
+ class d_of_d_of_d (d_of_sth ):
101
+ def __init__ (self , * args , ** kwargs ):
102
+ super ().__init__ (d_of_d , * args , ** kwargs )
103
+
104
+
105
+ ########
106
+
107
+ class d_of_d_of_d_of_d (d_of_sth ):
108
+ def __init__ (self , * args , ** kwargs ):
109
+ super ().__init__ (d_of_d_of_d , * args , ** kwargs )
110
+
111
+
112
+ class d_of_d_of_d_of_d_of_d (d_of_sth ):
113
+ def __init__ (self , * args , ** kwargs ):
114
+ super ().__init__ (d_of_d_of_d_of_d , * args , ** kwargs )
0 commit comments