@@ -116,6 +116,7 @@ class PythonHandler(BaseHandler):
116
116
"annotations_path" : "brief" ,
117
117
"preload_modules" : None ,
118
118
"allow_inspection" : True ,
119
+ "force_inspection" : False ,
119
120
"summary" : False ,
120
121
"show_labels" : True ,
121
122
"unwrap_annotated" : False ,
@@ -127,6 +128,7 @@ class PythonHandler(BaseHandler):
127
128
Attributes: General options:
128
129
find_stubs_package (bool): Whether to load stubs package (package-stubs) when extracting docstrings. Default `False`.
129
130
allow_inspection (bool): Whether to allow inspecting modules when visiting them is not possible. Default: `True`.
131
+ force_inspection (bool): Whether to force using dynamic analysis when loading data. Default: `False`.
130
132
show_bases (bool): Show the base classes of a class. Default: `True`.
131
133
show_inheritance_diagram (bool): Show the inheritance diagram of a class using Mermaid. Default: `False`.
132
134
show_source (bool): Show the source code of this object. Default: `True`.
@@ -318,6 +320,7 @@ def collect(self, identifier: str, config: Mapping[str, Any]) -> CollectorItem:
318
320
modules_collection = self ._modules_collection ,
319
321
lines_collection = self ._lines_collection ,
320
322
allow_inspection = final_config ["allow_inspection" ],
323
+ force_inspection = final_config ["force_inspection" ],
321
324
)
322
325
try :
323
326
for pre_loaded_module in final_config .get ("preload_modules" ) or []:
0 commit comments