MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / __getattr__

Function __getattr__

pager_lib/pyasn1/codec/native/encoder.py:281–285  ·  view source on GitHub ↗
(attr: str)

Source from the content-addressed store, hash-verified

279encode = SingleItemEncoder()
280
281def __getattr__(attr: str):
282 if newAttr := {"tagMap": "TAG_MAP", "typeMap": "TYPE_MAP"}.get(attr):
283 warnings.warn(f"{attr} is deprecated. Please use {newAttr} instead.", DeprecationWarning)
284 return globals()[newAttr]
285 raise AttributeError(attr)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected