.. SPDX-FileCopyrightText: 2020 cusy GmbH .. .. SPDX-License-Identifier: BSD-3-Clause Mypy ==== Mit Mypy könnt ihr eine statische Typüberprüfung vornehmen. .. seealso:: * `Home `_ * `GitHub `_ * `Docs `_ * `PyPI `_ * `Using Mypy in production at Spring `_ Installation ------------ Mypy erfordert Python≥3.5. Dann kann es installiert werden, :abbr:`z.B. (zum Beispiel)` mit: .. code-block:: console $ uv add mypy Überprüfen ---------- Dann könnt ihr es überprüfen, :abbr:`z.B. (zum Beispiel)` mit: .. code-block:: console $ uv run mypy myprogram.py .. note:: Obwohl Mypy mit Python3 installiert werden muss, kann es auch Python2-Code analysieren, :abbr:`z.B. (zum Beispiel)` mit: .. code-block:: console $ uv run mypy --py2 myprogram.py