docstring中的doctest字符串禁用拼写检查器

问题描述

def foo():
    """
    A tyypo  # PyCharm reports this word is misspelled
    """
    pass
  
def bar():
    """
    A tyypo  # PyCharm does not report any spelling issues
    >>> a=1
    """
    pass

当其中有doctest代码段时,为什么禁用了整个文档字符串的拼写检查器?在这种情况下如何保持拼写检查器正常工作?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)