summaryrefslogtreecommitdiffhomepage
path: root/.pylintrc
diff options
context:
space:
mode:
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>2013-08-26 14:34:37 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-08-26 15:04:46 +0900
commit93a84871373b341228871206f60d20ec6303b202 (patch)
tree9bb1bb463dbd51065ed9e9705e60d69db426c990 /.pylintrc
parent1a3adadca4e4cc379ec76cbdd129329f23d9012d (diff)
stringify: allow user classes to annotate type of their attributes
allow user classes to annotate type of their attributes using _TYPE class attribute. an example: class Foo(StringifyMixin): _TYPE = {'ascii': ['attr1', 'attr2']} def __init__(self): self.attr1 = 'hoge' self.attr2 = 'fuga' currently handles only 'ascii' type, for which just convert from/to unicode. Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to '.pylintrc')
0 files changed, 0 insertions, 0 deletions