ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

You NEED to know about Python protocols

Автор: Carberra

Загружено: 2024-11-18

Просмотров: 5733

Описание: 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

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
You NEED to know about Python protocols

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Creating a Python Discord bot in 2025

Creating a Python Discord bot in 2025

Протоколы в Python как зависимости вместо реализаций - typing.Protocol

Протоколы в Python как зависимости вместо реализаций - typing.Protocol

Протоколы и ABC в Python — когда какой использовать?

Протоколы и ABC в Python — когда какой использовать?

How to Use Google Gemini Banana - Easy Guide

How to Use Google Gemini Banana - Easy Guide

Python: A Quick Guide To Type Annotations (ft. Mypy)

Python: A Quick Guide To Type Annotations (ft. Mypy)

Я удалил ';' из C

Я удалил ';' из C

Generics are VITAL in typed Python

Generics are VITAL in typed Python

Python 3.12 — революция или эволюция?

Python 3.12 — революция или эволюция?

10 Python Anti-Patterns That Are Breaking Your Code

10 Python Anti-Patterns That Are Breaking Your Code

Exploring Protocols in Python: Understanding & Creating Custom Protocols

Exploring Protocols in Python: Understanding & Creating Custom Protocols

super/MRO, Python's most misunderstood feature.

super/MRO, Python's most misunderstood feature.

Почему ваш код не соответствует Python (и как это исправить)

Почему ваш код не соответствует Python (и как это исправить)

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

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

Аннотация Generic для классов

Аннотация Generic для классов

Modern Python logging

Modern Python logging

Weird URL Protocols

Weird URL Protocols

Python Has the Best Standard Library Ever: 10 Modules You Need to Know

Python Has the Best Standard Library Ever: 10 Modules You Need to Know

Enums in Python are SIMPLE but POWERFUL

Enums in Python are SIMPLE but POWERFUL

Почему ваш сайт должен весить 14 КБ

Почему ваш сайт должен весить 14 КБ

Python 3.12 Generic Types Explained

Python 3.12 Generic Types Explained

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]