DEV Community

The Incredible Hulk(ython): Making Python Strong(ly Typed)

Periklis Gkolias on August 06, 2018

Python is a wonderful dynamically typed language, but quite a few people consider this as its biggest disadvantage. But why? Even thoug...
Collapse
 
krumpet profile image
Ran Lottem

A great read, I work on a project created with typing in mind from the outset. There are still issues, such as lack of actually enforcing anything, and random mypy errors, but I feel like this is a good direction for the language to take.

Collapse
 
perigk profile image
Periklis Gkolias

Hi Ran,

Glad you liked it. At this very moment(think few months ago when this article was written) mypy is in a dev branch(0.650dev), so it is not recommended for production code. I should have mentioned it probably.

Collapse
 
k4ml profile image
Kamal Mustafa

I'd really want to start using type checking in a large code base with growing team working on it but look like mypy still have some issue in a large code base, which a bit ironic. I shared my initial experience before dev.to/k4ml/i-started-to-like-mypy....

Collapse
 
perigk profile image
Periklis Gkolias

Nice article, thanks for sharing

Collapse
 
abdurrahmaanj profile image
Abdur-Rahmaan Janhangeer

is this

def find\_files\_of\_type(

a legal func name?

Collapse
 
perigk profile image
Periklis Gkolias

No, I will check why this happened. Thanks

Collapse
 
abdurrahmaanj profile image
Abdur-Rahmaan Janhangeer

some syntax highlighting might be nice

Collapse
 
perigk profile image
Periklis Gkolias

Sure, to be honest I am not sure why it is happening, maybe as part of the transfer between medium and dev.to. I will have a look how this is done. Thanks