File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def get_package_properties(package_id: str) -> ModuleProperties:
45
45
package = importlib .import_module (package_id )
46
46
except BaseException as e :
47
47
raise InspectError (str (e )) from e
48
- name = getattr (package , '__name__' , None )
48
+ name = getattr (package , '__name__' , package_id )
49
49
file = getattr (package , '__file__' , None )
50
50
path = getattr (package , '__path__' , None ) # type: Optional[List[str]]
51
51
if not isinstance (path , list ):
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ def args_kwargs(signature: FunctionSig) -> bool:
202
202
return list (sorted (self .signatures , key = lambda x : 1 if args_kwargs (x ) else 0 ))
203
203
204
204
205
- def infer_sig_from_docstring (docstr : str , name : str ) -> Optional [List [FunctionSig ]]:
205
+ def infer_sig_from_docstring (docstr : Optional [ str ] , name : str ) -> Optional [List [FunctionSig ]]:
206
206
"""Convert function signature to list of TypedFunctionSig
207
207
208
208
Look for function signatures of function in docstring. Signature is a string of
You can’t perform that action at this time.
0 commit comments