Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 278 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 278 Bytes

classproperty

Install

pip install classproperties

Usage

from classproperties import classproperty

class Foo:
  @classproperty
  def prop():
    return 'hi there'

  @classproperty
  def other(cls):
    return 'also works'


Foo.prop
Foo.other