filmov
tv
Python Type Hinting and Type-Checking Crash Course with mypy [Tutorial]

Показать описание
Is your autocomplete not working in VSCode? Add type hints!
Python is a dynamically typed language which means that type checking is performed at run-time (when executed). If there is an error in the code it will be thrown at execution. This can lead to unexpected errors and bugs if you are not careful as a developer. By using a static type checker tool like mypy and using type hints in Python we can dramatically reduce chances of runtime errors in Python code.
Source code:
00:00 Intro
00:35 Why use type hinting
01:17 mypy: How to enforce type checking
01:44 Run mypy and VSCode extension
02:10 Automated type checking!
02:22 Adding type hints to functions
03:30 Adding type hints to Lists
04:04 Adding type hints to Dicts
04:18 TypedDicts types
05:28 Sequences types
06:33 Optional and Any types
07:09 Custom types
07:45 Generic types
09:32 Wrap-up
Please consider liking if you found the video useful and subscribe for more!
Python is a dynamically typed language which means that type checking is performed at run-time (when executed). If there is an error in the code it will be thrown at execution. This can lead to unexpected errors and bugs if you are not careful as a developer. By using a static type checker tool like mypy and using type hints in Python we can dramatically reduce chances of runtime errors in Python code.
Source code:
00:00 Intro
00:35 Why use type hinting
01:17 mypy: How to enforce type checking
01:44 Run mypy and VSCode extension
02:10 Automated type checking!
02:22 Adding type hints to functions
03:30 Adding type hints to Lists
04:04 Adding type hints to Dicts
04:18 TypedDicts types
05:28 Sequences types
06:33 Optional and Any types
07:09 Custom types
07:45 Generic types
09:32 Wrap-up
Please consider liking if you found the video useful and subscribe for more!
Python Typing - Type Hints & Annotations
The BIGGEST Misconception About Type Hints In Python Explained
Python tricks: Type hints and static type checking
Type Hinting - Advanced Python Tutorial #6
5 Reasons Why You Should Use Type Hints In Python
Enhancing your Python code with type hints and type checking
Type-Checking Python Programs With Type Hints and mypy
Python Type Hinting and Type-Checking Crash Course with mypy [Tutorial]
Rust Reqwest - Weather App API Call - Accepting Terminal Input Parameters - Our First Rust Mini Apps
Type Checking in Python with MyPy - Declare Variables in C/C++ Style!
The REAL Reason You Should Use Type Hints in Python
“typing” is getting deprecated in Python
Python: Type Checking Python Programs With Type Hints and mypy
Python Type Hints: Pros & Cons
How to use python type hinting?
Static type checking with Mypy — Perfect Python
Bernat Gabor - Type hinting (and mypy) - PyCon 2019
Better code with python typing or type hints to see your input and output data types!
What are Python TYPE HINTS and how to use them in Visual Studio Code
python typing type checking
Type checking rules in visual studio code for python
Why you should use Type Hints in Python - Are type hints worth it?
Type Hints - Intermediate Python 08
Type Annotation & Type Hinting in Python | Typing Module | Advanced Python Series | #python
Комментарии