DEV Community

Cover image for Python's type hints

Python's type hints

Victor Silva on August 12, 2018

If you've been working with Python for a little time, chances are that you've heard that explicit is better than implicit. If you've been working w...
Collapse
 
tux0r profile image
tux0r

And this is only one of the problems solved by not using Python...

Collapse
 
rapidnerd profile image
George • Edited

After using python for so long I can certainly agree with you, type hints are beautiful!

Great post, very well said.

Collapse
 
nicoteiz profile image
Nico Oteiza

I'd never seen them before! And I've been using Python for a while already! Doesn't look very 'pythonic' IMHO, but it's definitely nice for everyone down the road

Collapse
 
rpalo profile image
Ryan Palo

I feel like it’s one of those things where python ramps into the complexity you need. If your project is small or functions are simple, you can probably leave it off. But when you get to a point where you’re going “boy, something weird is going on. It would be nice to get some type hints,” it makes it relatively easy to add it in and get that extra help. 😁