Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 719 Bytes

typing.rst

File metadata and controls

18 lines (11 loc) · 719 Bytes

Type hinting

Websauna supports Python 3.5 type hints. Type hints add optional static typing information on your variables for tools like code editors and automatic errors checkers. Typing enables more accurate auto completion and background error checking during writing. Static analysis tools like mypy can be run against the codebase to catch further errors.

See :py:class:`websauna.system.http.Request` how to decorate your classes and arguments for type hinting that is only available during run-time.