You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[stubtest] Support @final decorator on methods as well #14924
To update on the status here: following #14951, this is now fully implemented except for cases where the method is overloaded in the stub (implementing that is blocked by #14950).
Activity
sobolevn commentedon Mar 19, 2023
After working on for a short time, I've noticed several problems:
@propertyis not supported@staticmethodis not supported@classmethodis not supportedThis happens, because
__final__cannot be set onpropertyobjects:See:
But,
@classmethodand@staticmethodactually change the object when usinggetattr, this is why this happens:This needs:
getattr_staticto get methods from the classThis is quite complicated for a Sunday's evening project, so - please feel free to continue it if someone finds it useful.
Stubtest: verify stub methods or properties are decorated with `@fina…
AlexWaygood commentedon Mar 25, 2023
To update on the status here: following #14951, this is now fully implemented except for cases where the method is overloaded in the stub (implementing that is blocked by #14950).