Unverified Commit 67b37891 authored by Mario Šaško's avatar Mario Šaško Committed by GitHub
Browse files

Make DummyObject more robust (#20146)

parent 93e14486
...@@ -986,9 +986,9 @@ class DummyObject(type): ...@@ -986,9 +986,9 @@ class DummyObject(type):
`requires_backend` each time a user tries to access any method of that class. `requires_backend` each time a user tries to access any method of that class.
""" """
def __getattr__(cls, key): def __getattribute__(cls, key):
if key.startswith("_"): if key.startswith("_"):
return super().__getattr__(cls, key) return super().__getattribute__(key)
requires_backends(cls, cls._backends) requires_backends(cls, cls._backends)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment