@@ -167,7 +167,7 @@ def parsekeywordpairs(signature: str) -> Dict[str, str]:
167
167
return {item [0 ]: "" .join (item [2 :]) for item in stack if len (item ) >= 3 }
168
168
169
169
170
- def fixlongargs (f : Callable , argspec : ArgSpec ) -> ArgSpec :
170
+ def _fixlongargs (f : Callable , argspec : ArgSpec ) -> ArgSpec :
171
171
"""Functions taking default arguments that are references to other objects
172
172
whose str() is too big will cause breakage, so we swap out the object
173
173
itself with the name it was referenced with in the source by parsing the
@@ -195,7 +195,7 @@ def fixlongargs(f: Callable, argspec: ArgSpec) -> ArgSpec:
195
195
return argspec
196
196
197
197
198
- getpydocspec_re = LazyReCompile (
198
+ _getpydocspec_re = LazyReCompile (
199
199
r"([a-zA-Z_][a-zA-Z0-9_]*?)\((.*?)\)" , re .DOTALL
200
200
)
201
201
@@ -206,7 +206,7 @@ def _getpydocspec(f: Callable) -> Optional[ArgSpec]:
206
206
except NameError :
207
207
return None
208
208
209
- s = getpydocspec_re .search (argspec )
209
+ s = _getpydocspec_re .search (argspec )
210
210
if s is None :
211
211
return None
212
212
@@ -265,7 +265,7 @@ def getfuncprops(func: str, f: Callable) -> Optional[FuncProps]:
265
265
return None
266
266
try :
267
267
argspec = _get_argspec_from_signature (f )
268
- fprops = FuncProps (func , fixlongargs (f , argspec ), is_bound_method )
268
+ fprops = FuncProps (func , _fixlongargs (f , argspec ), is_bound_method )
269
269
except (TypeError , KeyError , ValueError ):
270
270
argspec_pydoc = _getpydocspec (f )
271
271
if argspec_pydoc is None :
0 commit comments