Quantcast
Channel: `staticmethod` and `abc.abstractmethod`: Will it blend? - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Answer by gerrit for `staticmethod` and `abc.abstractmethod`: Will it blend?

$
0
0

Starting with Python 3.3, it is possible to combine@staticmethod and @abstractmethod, so none of the other suggestions are necessary anymore:

@staticmethod@abstractmethoddef my_abstract_staticmethod(...):

Further @abstractstatic is deprecated since version 3.3.


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>