flake8-bugbear
flake8-bugbear copied to clipboard
Enforce order of decorators combined with `@abstractmethod`
When combining @abstractmethod with @property or @staticmethod, the latter must come first. This might be a good addition to this plugin.
Sounds quite reasonable, especially if the error message in #281 will suggest using a combination instead of the deprecated @abstractproperty.
See e.g. https://github.com/python/cpython/issues/60471 for discussion around why the wrong order is problematic.