1717]
1818ARG_NAME_LIST_TO_IGNORE .extend (ARGS_OR_KWARGS_NAME_LIST )
1919
20- ADDITIONAL_INFO_PREFIX_LIST : List [str ]= [
20+ ADDITIONAL_INFO_PREFIX_LIST : List [str ] = [
2121 '.. versionadded' ,
2222 '.. deprecated' ,
2323 '.. versionchanged' ,
@@ -273,7 +273,7 @@ def get_func_overall_docstring(
273273 docstring : str
274274 Target docstring string.
275275 """
276- match : Optional [re .Match ]= _get_func_match (
276+ match : Optional [re .Match ] = _get_func_match (
277277 py_module_str = py_module_str , func_name = func_name )
278278 if match is None :
279279 return ''
@@ -499,7 +499,8 @@ def get_docstring_param_info_list(docstring: str) -> List[Dict[str, str]]:
499499 for splitted_param_doc in splitted_param_doc_list :
500500 arg_name : str = _get_docstring_var_name (var_doc = splitted_param_doc )
501501 type_name : str = _get_docstring_type_name (var_doc = splitted_param_doc )
502- default_val : str = _get_docstring_default_value (var_doc = splitted_param_doc )
502+ default_val : str = _get_docstring_default_value (
503+ var_doc = splitted_param_doc )
503504 description : str = _get_docstring_var_description (
504505 var_doc = splitted_param_doc )
505506 param_info_list = _append_param_info_to_list (
@@ -1063,7 +1064,7 @@ def _get_return_value_type_name_from_line(line_str: str) -> str:
10631064 return_value_type_name : str
10641065 Type name of return value.
10651066 """
1066- colon_exists : bool = ':' in line_str
1067+ colon_exists : bool = ':' in line_str
10671068 if not colon_exists :
10681069 return_value_type_name : str = line_str .split (':' )[0 ]
10691070 else :
@@ -1073,7 +1074,7 @@ def _get_return_value_type_name_from_line(line_str: str) -> str:
10731074
10741075
10751076def _get_return_value_docstring (
1076- docstring : str , drop_additional_info : bool = True ) -> str :
1077+ docstring : str , drop_additional_info : bool = True ) -> str :
10771078 """
10781079 Get the string of docstring's return value part.
10791080
@@ -1113,7 +1114,7 @@ def _get_return_value_docstring(
11131114 if i < start_line_idx :
11141115 continue
11151116 last_line_idx = i
1116- is_hyphen_line : bool = '----' in line_str
1117+ is_hyphen_line : bool = '----' in line_str
11171118 if not is_hyphen_line :
11181119 continue
11191120 last_line_idx -= 2
@@ -1160,7 +1161,7 @@ def _hyphens_exists_next_line(
11601161 if len (line_splitted_list ) < next_line_idx + 1 :
11611162 return False
11621163 next_line_str : str = line_splitted_list [next_line_idx ]
1163- is_in : bool = '----' in next_line_str
1164+ is_in : bool = '----' in next_line_str
11641165 if is_in :
11651166 return True
11661167 return False
@@ -1306,7 +1307,7 @@ def _remove_nested_func_str(func_str: str, func_indent_num: int) -> str:
13061307 """
13071308
13081309 removed_func_str : str = ''
1309- line_splitted_list : List [str ]= func_str .split ('\n ' )
1310+ line_splitted_list : List [str ] = func_str .split ('\n ' )
13101311 is_initial_function_appeared : bool = False
13111312 is_nested_func_line : bool = False
13121313 for line_str in line_splitted_list :
@@ -1402,7 +1403,7 @@ def get_optional_arg_name_list(docstring: str) -> List[str]:
14021403 return []
14031404 if not _parameters_exists_in_docstring (docstring = docstring ):
14041405 return []
1405- splitted_param_doc_list : List [str ]= get_splitted_param_doc_list (
1406+ splitted_param_doc_list : List [str ] = get_splitted_param_doc_list (
14061407 docstring = docstring )
14071408 optional_arg_name_list : List [str ] = []
14081409 for splitted_param_doc in splitted_param_doc_list :
@@ -1434,7 +1435,7 @@ def args_or_kwargs_str_in_param_name(param_arg_name: str) -> bool:
14341435
14351436 param_arg_name = param_arg_name .strip ()
14361437 for args_or_kwargs_str in ARGS_OR_KWARGS_NAME_LIST :
1437- is_in : bool = args_or_kwargs_str in param_arg_name
1438+ is_in : bool = args_or_kwargs_str in param_arg_name
14381439 if is_in :
14391440 return True
14401441 return False
0 commit comments