diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2013-08-26 14:34:37 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-08-26 15:04:46 +0900 |
commit | 93a84871373b341228871206f60d20ec6303b202 (patch) | |
tree | 9bb1bb463dbd51065ed9e9705e60d69db426c990 /.pylintrc | |
parent | 1a3adadca4e4cc379ec76cbdd129329f23d9012d (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