community[patch]: Fix remaining __inits__ in community (#22037)

Fixes the __init__ files in community to use __all__ which is statically
defined.
This commit is contained in:
Eugene Yurtsev
2024-05-22 13:42:17 -04:00
committed by GitHub
parent b7d08bf764
commit 36813d2f00
10 changed files with 49 additions and 29 deletions

View File

@@ -93,6 +93,3 @@ def __getattr__(name: str) -> Any:
module = importlib.import_module(_module_lookup[name])
return getattr(module, name)
raise AttributeError(f"module {__name__} has no attribute {name}")
__all__ = list(_module_lookup.keys())