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

[PROPOSAL] Assignment from no return in faceted_search.py #656

Open
macohen opened this issue Jan 21, 2024 · 0 comments
Open

[PROPOSAL] Assignment from no return in faceted_search.py #656

macohen opened this issue Jan 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@macohen
Copy link
Contributor

macohen commented Jan 21, 2024

What/Why

What are you proposing?

I was working on adding the "assignment-from-no-return" lint: https://pylint.readthedocs.io/en/latest/user_guide/messages/error/assignment-from-no-return.html. There's only one occurrence of it and it is in opensearchpy/helpers/faceted_search.py. The get_value_filter function passes, but it is called in add_filter. I think one right way to deal with this is to use the abstractmethod annotation on get_value_filter.

@saimedhi, I can create a PR if this makes sense to you

What problems are you trying to solve?

Be more pythonic

What is the developer experience going to be?

After the assignment-from-no-return lint is added, any functions do not return anything, but are called and assigned to a value will be caught in pylint

Are there any security considerations?

No

Are there any breaking changes to the API

No

What is the user experience going to be?

N/A

Are there breaking changes to the User Experience?

No

Why should it be built? Any reason not to?

If it is acceptable to not use this lint for a reason, then it should not be integrated.

What will it take to execute?

Just a quick PR I can pick up.

@macohen macohen self-assigned this Jan 21, 2024
@github-actions github-actions bot added the untriaged Need triage label Jan 21, 2024
@macohen macohen removed the untriaged Need triage label Jan 21, 2024
@dblock dblock added the bug Something isn't working label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants