Type checking in Python with mypy – Network programmability stream 19

preview_player
Показать описание
This is the recording of the network programmability stream which occurred on 2018/07/14

On this stream I explained type checking in Python with static type analyzer - mypy, why it is useful, how to use it and my previous experience with type checking.
We also started introducing annotations to Nornir - Python automation framework that was covered in Part 16.

Timecode:
0:00 - Introduction, news and announcements
7:30 - Why to use static type checking in Python
11:38 - Type annotations in Python vs static type definitions in C
18:33 - Python static type analyzers: mypy, pyre
28:50 - Example of bugs that mypy can find
50:20 - Preparing environment for Nornir
1:03:36 - Adding annotations to Nornir plugins to be checked by mypy

Resources:

Please note that this content is stream-first and it is slow-paced by design. I recommend increasing playback speed in the player settings.

Background music (royalty-free):
Рекомендации по теме
Комментарии
Автор

Simone needs to write a module that attempts to do conversation to static typing automagically, then you can fill in what it missed.

SAlexandert