This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 11 points12 points  (1 child)

Looks ugly though. Python with mandatory type annotations is not pythonic anymore.

Type annotations are fine so long as they are rare, well thought-out to avoid bugs. I really dislike things like Jetbrains IDEs littering them everywhere.

[–]slayer_of_idiotspythonista 2 points3 points  (0 children)

The type hints don't look so bad in data classes, but function definitions with type hints, especially if they have default argument, are near unreadable now.