In this episode of Python Refresher, we learn how to write decorators for Python functions that have parameters or take arguments.
When writing decorators, you may have encountered TypeErrors saying your function is "missing 1 required positional argument", or similar. This happens if your decorator calls the function, but doesn't pass the required arguments.
In this video we learn how to fix that, and make sure our decorators can be applied on any function, with or without parameters!
We've got 4 videos that talk about Python decorators. This is the third video.
Previous video: https://youtu.be/Ggv5wkqbpIw
Next video: https://youtu.be/iF_yhsrGbbM
-- Links --
✅Subscribe to the channel: https://www.youtube.com/tecladocode?sub_confirmation=1
✅Twitter: https://twitter.com/tecladocode
✅Instagram: https://instagram.com/tecladocode
✅Facebook: https://facebook.com/tecladocode
✅Our Complete Python Course that takes you from beginner to expert in Python: https://www.udemy.com/the-complete-python-course/?couponCode=YOUTUBE