File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -113,17 +113,16 @@ def summarize(
113
113
args_to_process = []
114
114
for num , arg in enumerate (args ):
115
115
check (f"Argument { num } in the summarize function" , arg , [tuple ])
116
- if isinstance (arg , tuple ):
117
- if len (arg ) < 2 :
118
- raise ValueError (
119
- f"Argument { num } should have a minimum length of 2, "
120
- f"instead got { len (arg )} "
121
- )
122
- if len (arg ) > 3 :
123
- raise ValueError (
124
- f"Argument { num } should have a maximum length of 3, "
125
- f"instead got { len (arg )} "
126
- )
116
+ if len (arg ) < 2 :
117
+ raise ValueError (
118
+ f"Argument { num } should have a minimum length of 2, "
119
+ f"instead got { len (arg )} "
120
+ )
121
+ if len (arg ) > 3 :
122
+ raise ValueError (
123
+ f"Argument { num } should have a maximum length of 3, "
124
+ f"instead got { len (arg )} "
125
+ )
127
126
entry = SD (* arg )
128
127
func = entry .func
129
128
names = entry .names_glue
You can’t perform that action at this time.
0 commit comments