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

Pylint warning W0640 #41

Open
rhanuch opened this issue Nov 30, 2018 · 0 comments
Open

Pylint warning W0640 #41

rhanuch opened this issue Nov 30, 2018 · 0 comments

Comments

@rhanuch
Copy link

rhanuch commented Nov 30, 2018

¡Hola!
Me entró una duda de cómo resolver este siguiente pedazo de código que Pylint me arroja el error W0640 al correrlo:

 for something in list_somethings:
        information[somrthing.param1] = list(filter(lambda other: something.param2 in other.param1, self.others))

Adicionalmente, utilizando la función de definir un "default" de objeto en pytest, me arroja el el warning W0621, como por ejemplo

@fixture(name='new_something')
def new_something():
    """Returns a new something with specified parameters"""
    def _new_something(params):
        return something
    return _new_something

¿Cuál sería la manera correcta de hacer estos snippets?

¡Muchas gracias!

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

No branches or pull requests

1 participant