MCPcopy Create free account
hub / github.com/ipython/traitlets / __getattr__

Method __getattr__

traitlets/config/argcomplete_config.py:18–21  ·  view source on GitHub ↗
(self, attr: str)

Source from the content-addressed store, hash-verified

16 # if argcomplete is not installed.
17 class StubModule:
18 def __getattr__(self, attr: str) -> t.Any:
19 if not attr.startswith("__"):
20 raise ModuleNotFoundError("No module named 'argcomplete'")
21 raise AttributeError(f"argcomplete stub module has no attribute '{attr}'")
22
23 argcomplete = StubModule() # type:ignore[assignment]
24 CompletionFinder = object # type:ignore[assignment, misc]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected