Pycharm中的RestructeredText指定字典内容

时间:2016-08-03 12:21:48

标签: python pycharm docstring

如何使用重构文本指定字典基类的内容?

class A(dict):
    """
    some restructered text here?
    """
    pass

a = A()
a["key1"] = B()
a["key2"] = B()
a["key3"] = 1 # here I'd like pycharm to show warning about types mismatch

0 个答案:

没有答案