You NEED to know about Python protocols
Protocols are perfect for attribute and method checking, and really shine in situations where you need a lazy check to ensure an object has everything it needs to work properly. In this video, we'll learn how to create our own! 0:00 - Intro 0:49 - Creating basic protocols [1] 3:14 - Runtime-checkable protocols [1] 4:51 - Creating a `Sendable` protocol 5:48 - Protocols with arbitrary parameters [2-3] 8:01 - Bypassing import restrictions with protocols 9:46 - Outro [1] https://docs.python.org/3/library/asy... [2] https://github.com/microsoft/pyright/... [3] https://github.com/python/mypy/issues... — 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 setup! (2024) • Terminal: • Make your terminal look AMAZING • Desk/recording gear: https://kit.co/Carberra • PC build: https://uk.pcpartpicker.com/list/TmzGYN Affiliations (I may earn a commission): • Codecrafters -- 40% off any plan: https://app.codecrafters.io/join?via=... • Keeper Password Manager -- 30% off your first year: https://keeper.io/r/EX4FB1C — 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

Creating a Python Discord bot in 2025

Protocols in Python: Why You Need Them - presented by Rogier van der Geer

Protocols vs ABCs in Python - When to Use Which One?

coding by hand just to feel something

Are descriptors the most MISUNDERSTOOD part of Python?

Python Decorators - Visually Explained

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isn’t 1.0 - Andrew Kelley Explains

Generics are VITAL in typed Python

Next-Level Concurrent Programming In Python With Asyncio

Exploring Protocols in Python: Understanding & Creating Custom Protocols

10 Python Anti-Patterns That Are Breaking Your Code

super/MRO, Python's most misunderstood feature.

Enums in Python are SIMPLE but POWERFUL

10 Python Tips That Separate Juniors From Seniors

What are "Protocols" In Python? (Tutorial 2023)

Metaclasses in Python

Why Use Design Patterns When Python Has Functions?

Understanding Python: Descriptors

structural subtyping in python with Protocol! (intermediate) anthony explains #164

