summaryrefslogtreecommitdiff
path: root/steamrelationships/constants.py
blob: af357333844cb120dedb22776ac23dd5b741bd4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# God I fucking love python and the shit workarounds it requires for something as simple as a constant variable
def constant(f):
    def fset(self, value):
        raise TypeError
    def fget(self):
        return f()
    return property(fget, fset)

class _Const(object):
    @constant
    def STEAMAPI_MAXREQ() -> int:
        return 100000