File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -1090,6 +1090,28 @@ def run(self):
10901090 assert 0 < code < 100 , code
10911091 code += 100 * rst_error .level
10921092 msg = "%s%03i %s" % (rst_prefix , code , msg )
1093+ if code == 213 :
1094+ if "\n Args:\n " in unindented and unindented .find (
1095+ "\n Args:\n "
1096+ ) < unindented .find (" *args:" ):
1097+ # Ignore special case used in Google docstring style
1098+ continue
1099+ if "\n Parameters\n ----------\n " in unindented and unindented .find (
1100+ "\n Parameters\n ----------\n "
1101+ ) < unindented .find ("\n *args\n " ):
1102+ # Ignore special case used in NumPy docstring style
1103+ continue
1104+ if code == 210 :
1105+ if "\n Args:\n " in unindented and unindented .find (
1106+ "\n Args:\n "
1107+ ) < unindented .find (" **kwargs:" ):
1108+ # Ignore special case used in Google docstring style
1109+ continue
1110+ if "\n Parameters\n ----------\n " in unindented and unindented .find (
1111+ "\n Parameters\n ----------\n "
1112+ ) < unindented .find ("\n **kwargs\n " ):
1113+ # Ignore special case used in NumPy docstring style
1114+ continue
10931115
10941116 # This will return the line number by combining the
10951117 # start of the docstring with the offet within it.
You can’t perform that action at this time.
0 commit comments