How can mypy ignore a single line in a source file?

后端 未结 3 601
故里飘歌
故里飘歌 2021-02-04 23:28

I\'m using mypy in my python project for type checking. I\'m also using PyYAML for reading and writing the project configuration files. Unfortunately, when using the recommended

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-04 23:39

    I would rather config it in mypy.ini

    For example, to ignore Django migrations:

    [mypy-*.migrations.*]
    ignore_errors = True
    

提交回复
热议问题