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
Fix static typing of @Retry decorated instance methods (fixes#532) (#……668)
_RetryDecorated had no __get__, so mypy and pyright treated
instance.method the same as the unbound Class.method: an ordinary call
like instance.method(value=1) demanded an explicit self argument and
the return type resolved to Unknown/Any. Add __get__ overloads so
attribute access through an instance returns the bound form with the
correct return type. The runtime object is a real function from
functools.wraps and already binds correctly, so this is purely a
static analysis fix.