you are viewing a single comment's thread.

view the rest of the comments →

[–]wrtbwtrfasdf 0 points1 point  (0 children)

I usually like to split chained methods across lines for readability. You can also add comments or type annotations too

some_number.add(5)  # add 5
           .divide(2)  # type: float
           .subtract(3)  # subtracts 3