def classproperty(func):  # noqa: D401; irrelevant for properties
    """Decorator like classmethod to implement a static class property."""
    if not isinstance(func, (classmethod, staticmethod)):
        func = classmethod(func)

    return _ClassPropertyDescriptor(func)
Decorator like classmethod to implement a static class property.
cherrypy/_helper.py