today I talk about one of my favorite additions to typing: Protocol! in this we extend from a previous example where we used overload to more-properly support any "__index__"-able type!
- intro to typing: https://youtu.be/H5CnZQDKfhU
- previous video on overload: https://youtu.be/rY9NZ-tXiDQ
playlist: https://www.youtube.com/playlist?list=PLWBKAf81pmOaP9naRiNAqug6EBnkPakv
==========
twitch: https://twitch.tv/anthonywritescode
dicsord: https://discord.gg/xDKGPaW
twitter: https://twitter.com/codewithanthony
github: https://github.com/asottile
stream github: https://github.com/anthonywritescode
I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
Download
0 formats
No download links available.
structural subtyping in python with Protocol! (intermediate) anthony explains #164 | NatokHD