Python tricks: Type hints and static type checking

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

I've learned everything I know about Python from YouTube and your videos are some of the best I've come across. I appreciate the amount of detail you go into about every topic; keep it up!

austinhaider
Автор

that is the clearest and simplest explanation for type hints. thank you man.

zakariaabderrahmanesadelao
Автор

Thanks for explaining this. Your explanation was very deep and clear. I was a little perplexed with this concept.

arachnid
Автор

Good job Seb. Very well explained. Clear and synthetic!

francescofaccia
Автор

An amazing explanation dude, I was having some difficulty understanding the callable type hints but you did such an amazing job of ELI5ing it. Thanks a lot :) and keep the great content coming

raspreetsingh
Автор

Very clear and to the point. Appreciate

nelsonmacy
Автор

everything is clearly explained! cheers!

barulli
Автор

Nice video - thank you! Maybe you also could be interested in Pyadaaah, which provides runtime (!) type AND range checking?

pyadaaah
Автор

Man, you good! Thanks for explanation.

justchary
Автор

I really enjoyed it. Very usefull video . Thank you so much for this

thecodebear
Автор

👏 👏 👏 👏, very nice explanations, thank you!!

RodrigoStuchi
Автор

Your explanation is amazing, and your outfit is stunning..

wentaoqiu
Автор

PHP has real type hints. I was surprised to find out that Python’s interpreter ignores them.

rafadydkiemmacha
Автор

Except, Negative number have factorials :)
And float have too... :)

RajveerSingh-ybzq
Автор

Anyone else getting an error in factorial function while doing mypy type checking. It says return type got "None" expected "int", which actually makes sense because we are returning NOne for a certain case when we have mentioned that return type is int. Why is that error not popping up for you? Seems mypy got some smarter updates since

lazypunk
Автор

Is None still always accepted by mypy? And if yes, why are they not using the "Optional" class from the typing module for that?

flyingsquirrel
Автор

interesting video, thanks pal, go ahead.

soldadopreciso
Автор

Hi,
For the first program I'm getting "Incompatible return value type (got "None", expected "int")" how to deal with it ?

debSha
Автор

I'd love to get a list of your atom Python Packages that you are using. the REPL, autocomplete, etc. packages

javierbosch
Автор

optional static typing... :D
am i wrong, or is it like:
1) if static typing would have saved you... of course, you didn't use it
2) if i take my time to give proper type hints... why does the runtime not care at all? i may optionally type check it with another program...

i don't know... feels like do it right all the time or just leave it

Serotonindude