classproperty#
- tpcp.misc.classproperty(method=None)[source]#
Convert a class method into a class property.
Decorator that converts a method with a single cls argument into a property that can be accessed directly from the class.
Taken from django: https://docs.djangoproject.com/en/5.0/ref/utils/#django.utils.functional.classproperty Original version published under the BSD license.