Популярное

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

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

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

Топ запросов

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

You NEED to know about Python protocols

Автор: Carberra

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

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

Описание:

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

You NEED to know about Python protocols

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

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

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

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

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

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

Creating a Python Discord bot in 2025

Creating a Python Discord bot in 2025

10 Python Anti-Patterns That Are Breaking Your Code

10 Python Anti-Patterns That Are Breaking Your Code

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

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

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

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

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

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

Как устроен PHP 🐘: фундаментальное знание для инженеров

Как устроен PHP 🐘: фундаментальное знание для инженеров

Generics are VITAL in typed Python

Generics are VITAL in typed 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

Weird URL Protocols

Weird URL Protocols

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

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

Коллекции Python.abc | InvertibleDict

Коллекции Python.abc | InvertibleDict

Декораторы Python — наглядное объяснение

Декораторы Python — наглядное объяснение

Python 3.12 Generic Types Explained

Python 3.12 Generic Types Explained

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

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

Are descriptors the most MISUNDERSTOOD part of Python?

Are descriptors the most MISUNDERSTOOD part of Python?

super/MRO, Python's most misunderstood feature.

super/MRO, Python's most misunderstood feature.

SAVE TIME and reduce boilerplate with dataclasses

SAVE TIME and reduce boilerplate with dataclasses

10 Tips to Become REALLY Good at Python

10 Tips to Become REALLY Good at Python

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

Are metaclasses the HARDEST thing in Python?

Are metaclasses the HARDEST thing in Python?

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



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



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