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

Method __init__

traitlets/config/loader.py:970–976  ·  view source on GitHub ↗
(self, *args: t.Any, **kwargs: t.Any)

Source from the content-addressed store, hash-verified

968 """ArgParse action to handle a flag"""
969
970 def __init__(self, *args: t.Any, **kwargs: t.Any) -> None:
971 self.flag = kwargs.pop("flag")
972 self.alias = kwargs.pop("alias", None)
973 kwargs["const"] = Undefined
974 if not self.alias:
975 kwargs["nargs"] = 0
976 super().__init__(*args, **kwargs)
977
978 def __call__(
979 self, parser: t.Any, namespace: t.Any, values: t.Any, option_string: str | None = None

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected