Python is a dynamic language, which gives its users a lot of power. But, as we know, with great power comes great responsibility. Fortunately for us, we can incorporate a tool in our workflows - Mypy. Mypy allows developers to add a layer of safety in their programs - static type annotations.
During my talk, I will show you why PEP484 type annotations can be helpful, how to check them, and gradually introduce them in your codebase. Additionally, I want to show some tricks to make the dynamic parts safer. Finally, I will also show situations where Mypy falls short and how to avoid them.
Michal's professional coding career started in 2014 in Ruby. Since that time, he has managed to work in Scala, Java, and Python. He is interested in security and open-source intelligence. In addition, he love's to have correct and well-tested software running on production.
Presented by Michal Gutowski
The Swiss Python Summit is held at OST Eastern Switzerland University of Applied Sciences in Rapperswil on September 22, 2022. The Swiss Python Summit is organized by the Swiss Python Summit Association.
Released under CC-BY-SA 4.0
https://creativecommons.org/licenses/...
Recorded by winkekatze.tv and chvoc
Supported by Chaos West TV
Additional Links:
Winkekatze TV: https://winkekatze.tv/
Chaos West TV: https://chaoswest.tv/
Swiss Python Summit: https://python-summit.ch/
Playlist "Swiss Python Summit 2022" on YouTube: • Swiss Python Summit 2022
Watch video Static type checking with mypy | Swiss Python Summit 2022 online, duration hours minute second in high quality that is uploaded to the channel Winkekatze TV 26 September 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 2,421 times and liked it 45 visitors.