Skip to content

Split python method chaining #38

@raffaem

Description

@raffaem

Is it possible to split on Python method chains as well?

For example:

s = "hello, how are you?"
s2 = s.replace("hello", "hi").replace("you", "we").title().lower().strip()

To become:

s = "hello, how are you?"
s2 = s.replace("hello", "hi") \
         .replace("you", "we") \
         .title() \
         .lower() \
         .strip()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions