Fetching contributors…
Cannot retrieve contributors at this time
19 lines (11 sloc) 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.

Request type hinting

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