Skip to content

Commit

Permalink
Sort returned __all__ (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv authored Oct 13, 2022
1 parent 08cba4b commit cb22eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lazy_loader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def attach(package_name, submodules=None, submod_attrs=None):
attr: mod for mod, attrs in submod_attrs.items() for attr in attrs
}

__all__ = list(submodules | attr_to_modules.keys())
__all__ = list(sorted(submodules | attr_to_modules.keys()))

def __getattr__(name):
if name in submodules:
Expand Down

0 comments on commit cb22eba

Please # to comment.