Рет қаралды 3,465
Decorators are amazing in Python, but have a habit of tripping a lot of people up! This video will cover the basics of creating simple and parametrised decorators (also known as decorator factories), as well as how to type them.
00:00 - Intro
00:49 - Creating a simple decorator
05:59 - Typehinting simple decorators
08:25 - Creating a parametrised decorator (decorator factory)
12:18 - Typehinting parametrised decorators
13:31 - Outro
-
If you want to see more of me, join my Discord server!
/ discord
I get a lot of people asking, so here's my setup!
• Visual Studio Code: • My Visual Studio Code ...
• Terminal: • Make your terminal loo...
-
If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.
#python #coding #howto