File tree Expand file tree Collapse file tree
src/executorlib/task_scheduler/interactive Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11repos :
22 - repo : https://github.com/astral-sh/ruff-pre-commit
3- rev : v0.14.14
3+ rev : v0.15.0
44 hooks :
55 - id : ruff
66 name : ruff lint
Original file line number Diff line number Diff line change @@ -326,13 +326,13 @@ def _short_object_name(node):
326326 }
327327 )
328328 elif "object at" in node_value_str :
329- short_name = node_value_str [1 :- 1 ].split ()[0 ].split ("." )[- 1 ] + "()"
329+ short_name = node_value_str [1 :- 1 ].split (maxsplit = 1 )[0 ].split ("." )[- 1 ] + "()"
330330 elif "<function" in node_value_str :
331331 short_name = node_value_str .split ()[1 ] + "()"
332332 elif "\n " in node_value_str :
333333 short_name = str (type (node )).split ("'" )[1 ].split ("." )[- 1 ] + "()"
334334 elif "(" in node_value_str and ")" in node_value_str :
335- short_name = node_value_str .split ("(" )[0 ] + "()"
335+ short_name = node_value_str .split ("(" , maxsplit = 1 )[0 ] + "()"
336336 elif len (node_value_str ) > 20 :
337337 short_name = node_value_str [:21 ] + "..."
338338 else :
You can’t perform that action at this time.
0 commit comments