File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ def auto_import_iter(module, paths: List[str]):
1919 if os .path .basename (f ).startswith ('__' ):
2020 continue
2121 module_name = f'{ module } .' + os .path .basename (f ).replace ('.py' , '' )
22+
23+ if "pending" in module_name :
24+ continue
25+
2226 # dynamic import
2327 # https://stackoverflow.com/questions/67631/how-to-import-a-module-given-the-full-path
2428 try :
@@ -29,6 +33,7 @@ def auto_import_iter(module, paths: List[str]):
2933 except Exception as e :
3034 logger .exception (
3135 f'Problem when loading file { f } as { module_name } from path { path } ' )
36+
3237 # iterate module content
3338 # https://stackoverflow.com/questions/1796180/how-can-i-get-a-list-of-all-classes-within-current-module-in-python
3439 # allow only class # inspect.isclass
You can’t perform that action at this time.
0 commit comments