python typing: aliases (beginner - intermediate) anthony explains #180

preview_player
Показать описание
today we talk about type aliases -- a nifty way to shorten some verbose type names or expose a named "type"

==========

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!
Рекомендации по теме
Комментарии
Автор

thank you so much for making these videos and sharing this info!

shashanksharma
Автор

I wanted to create a type that can take int | float('inf'). Is that possible?

RoyAAD
Автор

5:10 I am a little bit confused how it know that it needs to substitute what you put inside the [] by the "T"s inside the tuple. Could initialize it with several TypeVar ? T, V etc ?

thomashirtz
Автор

I like mypy because it knows when you didn't handle the None case for Optional values

SpeedingFlare