oh. like an headerfile in c++, an interface and the Dokumentation in one thing. Gives also downcompartibilty with the new typingsystem. Not needed but recommend. Right? This is Great! (Sorry for my bad English, im from Germany)
This is really great for documentation . I didnt know this existed. I find myself having huuuge files with some many lines mostly because of the documentation and comments.
So why does this need to be in a stub file rather than inside the py file? I have noticed this gets very hard to maintain, especially if you forget to update the stub and they are mismatched
This is fantastic!!! Now I know how to document Python code properly so that it can be4 read in the IDE. That will seriously come in handy.
oh. like an headerfile in c++, an interface and the Dokumentation in one thing. Gives also downcompartibilty with the new typingsystem. Not needed but recommend. Right?
This is Great!
(Sorry for my bad English, im from Germany)
Correct. Your English is not that bad, to be honest.
@@JLSXMK8 Thank You!
This is really great for documentation . I didnt know this existed. I find myself having huuuge files with some many lines mostly because of the documentation and comments.
Which editor are you using
So why does this need to be in a stub file rather than inside the py file? I have noticed this gets very hard to maintain, especially if you forget to update the stub and they are mismatched
Great work, I'm also wondering why didn't you mention the testing use case for the stub files
Thanks for this dude!
understood pyi files. Mostly asked interview question
Where are we using Tuple module?
The last function about circle info returns 2 values, which are packed as a Tuple. To type hint that, you need to import it from typing.
@@the.droetker you can just use tuple builtin
Thanks ❤
Thanks I was just trying to learn this earlier today. Can you make a video on .pyd files as well?
👍Thanks!
This feature is not that old, but python was invented in 1991, before java, c# and other languages😂
cool :)
great vid, but the concept of stubbing is such wank