Skip to content

Commit 757b540

Browse files
Update ci_scripts/check_api_parameters.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 7aff219 commit 757b540

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ci_scripts/check_api_parameters.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ def _check_params_in_description(rstfilename, paramstr):
6666
func_node = fake_func.body[0]
6767
func_args_str = gen_functions_args_str(func_node)
6868
params_in_title = func_args_str.split(", ")
69-
params_in_title.remove("/")
70-
params_in_title.remove("*")
69+
if "/" in params_in_title:
70+
params_in_title.remove("/")
71+
if "*" in params_in_title:
72+
params_in_title.remove("*")
7173

7274
funcdescnode = extract_params_desc_from_rst_file(rstfilename)
7375
if funcdescnode:

0 commit comments

Comments
 (0)