Project

General

Profile

Actions

Feature #1079

closed

Static type checking with Mypy

Added by Alexander Watzinger over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Backend
Target version:
Start date:
2019-11-13
Estimated time:
16.00 h
Cooperation:

Description

Mypy is an optional static type checker for Python that aims to combine the benefits of dynamic (or "duck") typing and static typing.

Validations with Mypy will raise code quality and readability.

To test the application use this commands. The first is the "tolerant" one, the 3rd is the most "strict".

mypy runserver.py --ignore-missing-imports
mypy runserver.py --ignore-missing-imports --disallow-untyped-defs
mypy runserver.py --ignore-missing-imports --strict

Actions

Also available in: Atom PDF