lib.wiring: fix _gettypeattr fallback path.
This commit is contained in:
parent
a2e87b370e
commit
b2d8a18cbf
|
@ -499,9 +499,9 @@ def _gettypeattr(obj, attr):
|
||||||
return cls.__dict__[attr]
|
return cls.__dict__[attr]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
# In case there is `__getattr__` on the metaclass, or just to generate an `AttributeError` with
|
# Call ``getattr`` In case there is ``__getattr__`` on the metaclass, or just to generate
|
||||||
# the standard message.
|
# an ``AttributeError`` with the standard message.
|
||||||
return type(obj).attr
|
return getattr(type(obj), attr)
|
||||||
|
|
||||||
|
|
||||||
# To simplify implementation and reduce API surface area `FlippedSignature` is made final. This
|
# To simplify implementation and reduce API surface area `FlippedSignature` is made final. This
|
||||||
|
|
Loading…
Reference in a new issue