@@ -947,10 +947,10 @@ def parse_doc_string(doc_str: str) -> tuple[dict[str, str], dict[str, str] | lis
947947 for return_val , return_help in re .findall (r":return (\w+): (.*)" , doc_str ):
948948 output_helps [return_val ] = return_help
949949 google_args_match = re .match (
950- r".*\n\s+ Args:\n(.*)" , doc_str , flags = re .DOTALL | re .MULTILINE
950+ r".*\n\s* Args:\n(.*)" , doc_str , flags = re .DOTALL | re .MULTILINE
951951 )
952952 google_returns_match = re .match (
953- r".*\n\s+ Returns:\n(.*)" , doc_str , flags = re .DOTALL | re .MULTILINE
953+ r".*\n\s* Returns:\n(.*)" , doc_str , flags = re .DOTALL | re .MULTILINE
954954 )
955955 if google_args_match :
956956 args_str = google_args_match .group (1 )
@@ -967,12 +967,12 @@ def parse_doc_string(doc_str: str) -> tuple[dict[str, str], dict[str, str] | lis
967967 return_help = white_space_re .sub (" " , return_help ).strip ()
968968 output_helps [return_name ] = return_help
969969 numpy_args_match = re .match (
970- r".*\n\s+Parameters\n\s*---------- *\n(.*)" ,
970+ r".*\n\s+Parameters\n\s*----------\s *\n(.*)" ,
971971 doc_str ,
972972 flags = re .DOTALL | re .MULTILINE ,
973973 )
974974 numpy_returns_match = re .match (
975- r".*\n\s+Returns\n\s+ ------- *\n(.*)" , doc_str , flags = re .DOTALL | re .MULTILINE
975+ r".*\n\s+Returns\n\s* -------\s *\n(.*)" , doc_str , flags = re .DOTALL | re .MULTILINE
976976 )
977977 if numpy_args_match :
978978 args_str = numpy_args_match .group (1 )
0 commit comments