MCPcopy Index your code
hub / github.com/python/cpython / __getattr__

Function __getattr__

Lib/argparse.py:2901–2907  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

2899 self._print_message(fmt % args, _sys.stderr)
2900
2901def __getattr__(name):
2902 if name == "__version__":
2903 from warnings import _deprecated
2904
2905 _deprecated("__version__", remove=(3, 20))
2906 return "1.1" # Do not change
2907 raise AttributeError(f"module {__name__!r} has no attribute {name!r}")

Callers

nothing calls this directly

Calls 1

_deprecatedFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…