Commit e7def6c
committed
gh-144957: Fix lazy imports to respect module __getattr__
When resolving lazy imports, check if a lazy import object was found
and the module has __getattr__. If so, try calling __getattr__ first
before using the lazy import object.1 parent 3e63300 commit e7def6c
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3084 | 3084 | | |
3085 | 3085 | | |
3086 | 3086 | | |
| 3087 | + | |
| 3088 | + | |
| 3089 | + | |
| 3090 | + | |
| 3091 | + | |
| 3092 | + | |
| 3093 | + | |
| 3094 | + | |
| 3095 | + | |
| 3096 | + | |
| 3097 | + | |
| 3098 | + | |
| 3099 | + | |
| 3100 | + | |
| 3101 | + | |
| 3102 | + | |
| 3103 | + | |
| 3104 | + | |
3087 | 3105 | | |
3088 | 3106 | | |
3089 | 3107 | | |
| |||
0 commit comments