Commit 5f2847c
When inspect.getmembers() encounters modules with objects that have
non-standard __bases__ attributes (like _ClassNamespace from typing
internals), it raises TypeError. This caused dj.Diagram(schema) to
fail intermittently depending on what modules were imported.
Now catches TypeError in addition to ImportError, allowing the search
to continue by skipping problematic modules.
Fixes #1072
Co-authored-by: Claude Opus 4.5 <[email protected]>
1 parent 3f5b237 commit 5f2847c
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1307 | 1307 | | |
1308 | 1308 | | |
1309 | 1309 | | |
1310 | | - | |
1311 | | - | |
| 1310 | + | |
| 1311 | + | |
1312 | 1312 | | |
1313 | 1313 | | |
1314 | 1314 | | |
| |||
0 commit comments