Rock Solid Python with Python Typing Transcripts
Chapter: Typing Guidance, Patterns, and Advice
Lecture: Autocomplete

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Another area, and I kind of hinted at this with the, you don't have to go to the docs, is using type hints and type information for autocomplete.
0:11 That's why you don't have to go to the docs 'cause you hit dot and then boom, here's a great long list of exactly what you need,
0:16 what type of data is passed through and so on. To me, this honestly is like one of the top reasons that I use Python types.
0:26 When I'm writing code, I wanna say variable dot or a class dot and just get a nice list of very clear,
0:35 very accurate information of what is it that I have, what functionality exists on that thing. Here we have a motorcycle we created
0:43 and because the createAdventure method said it returns a motorcycle, when we say tenoray. you can see, boom,
0:50 here's a great long list of exactly the features of the motorcycle class. So do not underestimate how valuable this is
0:58 and if you're not using an editor that looks like this in some way, you should really, really think about PyCharm, VS Code or something similar
1:07 because it's tremendously helpful.


Talk Python's Mastodon Michael Kennedy's Mastodon