Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to chain methods without arguments? #147

Open
b0g3r opened this issue Jun 26, 2020 · 1 comment
Open

How to chain methods without arguments? #147

b0g3r opened this issue Jun 26, 2020 · 1 comment

Comments

@b0g3r
Copy link

b0g3r commented Jun 26, 2020

Thank you for your great strict linting job! I have an IRL question, and maybe it's a good idea to add more examples to README.

For example I have long chain of methods without arguments:

some_object \
  .call_method() \
  .call_other() \
  .finalize()

So it should be:

some_objects.call_method(

).call_other(

).finalize()

or

some_objects.call_method(
).call_other(
).finalize()

?

@sobolevn
Copy link
Member

I would say that this is the solution:

(
   some_object
      .call_method()
      .call_other()
      .finalize()
)

But, I don't like it. Any other ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants