Commit 417031d
committed
fix(libs): dot_dict custom implementation of __getattr__ lead to issue accessing build-in attribute
When running pytest --doctest-modules, it try to inspect if things are wrapper by accessing the '__wrapped__' attribute. Our custom implementation lead to KeyError in certain situation. Try the custom logic first, and fallback to super().__getattribute__ to prevent the issue and ensure more robust handling.1 parent 46cef8f commit 417031d
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
0 commit comments