Since Python v3.3, you can use both the
@abstractmethod decorators on the same class function (and the
@abstractstaticmethod decorator has been depreciated).
import abc class MyClass: @staticmethod @abstractmethod def my_func(): pass
Like this page? Upvote with shurikens!
- Comments And Documentation
- February 2019 Updates
- Parsing Command-Line Arguments In Python
- Python Sets