MCPcopy Index your code
hub / github.com/YesianRohn/TextSSR / __getattr__

Method __getattr__

diffusers/src/diffusers/utils/import_utils.py:662–665  ·  view source on GitHub ↗
(cls, key)

Source from the content-addressed store, hash-verified

660 """
661
662 def __getattr__(cls, key):
663 if key.startswith("_") and key not in ["_load_connected_pipes", "_is_onnx"]:
664 return super().__getattr__(cls, key)
665 requires_backends(cls, cls._backends)
666
667
668# This function was copied from: https://github.com/huggingface/accelerate/blob/874c4967d94badd24f893064cc3bef45f57cadf7/src/accelerate/utils/versions.py#L319

Callers

nothing calls this directly

Calls 1

requires_backendsFunction · 0.85

Tested by

no test coverage detected