mypyの使用

The content of this page may be outdated and some links may be invalid. A newer version of this page exists in English.

More information ...

To see the changes to the English page since this page was last updated: visit GitHub compare c3365f29..3520383f and search for content/en/docs/languages/python/mypy.md.

mypy を使用している場合は、名前空間パッケージを有効にする必要があります。 有効にしないと、mypy は正しく実行できません。

名前空間パッケージを有効にするには、次のいずれかを行います。

プロジェクト設定ファイルに次の内容を追加します。

[tool.mypy]
namespace_packages = true

または、コマンドラインオプションを使用します。

mypy --namespace-packages