You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `getmembers` from the inspect module triggers execution, which leads to errors when types are not satisfied.
13
-
- So we define a custom function based on the one in the inspect module.
14
-
- It replaces `getattr_static` with `getattr_static` to solve the issue.
12
+
- `getmembers` function (from the inspect module) triggers execution instead of doing static analysis.
13
+
- This leads to errors, particularly on properties of classes in cindex.py, which causes segmentation errors or raises an Exception if a particular condition is not satisfied.
14
+
- To curb this, we need a fetch the members statically.
15
+
- The inspect module doesn't provide a function to do so. So we define a custom function based on the one in the inspect module.
16
+
17
+
diff: We replace the `getattr` function call with a `getattr_static` function call in the function definition.
0 commit comments