Skip to content

Commit 10143a4

Browse files
authored
remove commented out old dotdict (#8401)
Signed-off-by: TomuHirata <tomu.hirata@gmail.com>
1 parent 42c50c8 commit 10143a4

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

dspy/dsp/utils/utils.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,6 @@ def batch(group, bsize, provide_offset=False):
6666
return
6767

6868

69-
# class dotdict(dict):
70-
# """
71-
# dot.notation access to dictionary attributes
72-
# Credit: derek73 @ https://stackoverflow.com/questions/2352181
73-
# """
74-
75-
# __getattr__ = dict.__getitem__
76-
# __setattr__ = dict.__setitem__
77-
# __delattr__ = dict.__delitem__
78-
79-
8069
class dotdict(dict): # noqa: N801
8170
def __getattr__(self, key):
8271
if key.startswith("__") and key.endswith("__"):
@@ -110,8 +99,6 @@ class dotdict_lax(dict): # noqa: N801
11099

111100

112101
def flatten(data_list):
113-
# return [x for y in L for x in y]
114-
115102
result = []
116103
for child_list in data_list:
117104
result += child_list

0 commit comments

Comments
 (0)