MCPcopy Create free account
hub / github.com/OpenRouterTeam/python-sdk / lazy_dir

Function lazy_dir

src/openrouter/utils/dynamic_imports.py:49–54  ·  view source on GitHub ↗

Module-level __dir__ that lists lazily-loadable attributes.

(*, dynamic_imports, sub_packages=None)

Source from the content-addressed store, hash-verified

47
48
49def lazy_dir(*, dynamic_imports, sub_packages=None):
50 """Module-level __dir__ that lists lazily-loadable attributes."""
51 lazy_attrs = builtins.list(dynamic_imports.keys())
52 if sub_packages:
53 lazy_attrs.extend(sub_packages)
54 return builtins.sorted(lazy_attrs)

Callers 6

__dir__Function · 0.90
__dir__Function · 0.90
__dir__Function · 0.90
__dir__Function · 0.90
__dir__Function · 0.90
__dir__Function · 0.85

Calls 1

listMethod · 0.45

Tested by

no test coverage detected