code: def staticproperty(func):
    
    doc = func.__doc__
  
    if not isinstance(func, staticmethod):
      func = staticmethod(func)
  
    return ClassPropertyDescriptor(func, doc)
docs: Use as a decorator on a method definition to make it a class-level attribute (without binding).
  
    This decorator can be applied to a method or a staticmethod. This decorator does not bind any
    arguments.
  
    Usage:
    >>> other_x = 'value'
    >>> class Foo(object):
    ...   @staticproperty
    ...   def x():
    ...     return other_x
    ...
    >>> Foo.x
    'value'
  
    Setting or deleting the attribute of this name will overwrite this property.
  
    The docstring of the classproperty `x` for a class `C` can be obtained by
    `C.__dict__['x'].__doc__`.