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
Don't pretend @deprecated applies to classmethods.
The `@deprecated` decorator has a branch for handling deprecation of
classmethods, but that won't ever work because we start by getting
the `__name__` attribute on the object, which raises an AttributeError
on classmethods.
This could be fixed by fetching `obj.__func__.__name__` instead, but
given that one can as well put the `@deprecated` decorator *under* the
`@classmethod` decorator (so that it sees the underlying function), we
can just remove that non-functioning code.
Also switch some docstring formatting to str.format.
0 commit comments