Type checking in Python with mypy – Network programmability stream 19

Опубликовано: 26 Апрель 2026
на канале: dmfigol live
397
11

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:
Nornir - https://nornir.readthedocs.io/en/latest/
mypy - http://mypy-lang.org/

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

Don't miss my upcoming streams at   / dmfigol  
The code is on my github: https://github.com/dmfigol/network-pr...

Twitter:   / dmfigol  
Blog: https://dmfigol.me

Background music (royalty-free):
https://www.pretzel.rocks/