Whilelist Transformers private method in DummyObject (#20681)

This commit is contained in:
Sylvain Gugger 2022-12-08 11:19:11 -05:00 committed by GitHub
parent 9cc65f8701
commit 69038ce009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1013,7 +1013,7 @@ class DummyObject(type):
"""
def __getattribute__(cls, key):
if key.startswith("_"):
if key.startswith("_") and key != "_from_config":
return super().__getattribute__(key)
requires_backends(cls, cls._backends)