Skip to content

Conversation

mbyrnepr2
Copy link
Member

bad.py examples taken directly from the functional tests.

Type of Changes

Type
πŸ› Bug fix
✨ New feature
πŸ”¨ Refactoring
βœ“ πŸ“œ Docs

Description

Refs #5953

`bad.py` examples taken directly from the functional tests.
@mbyrnepr2 mbyrnepr2 marked this pull request as ready for review July 9, 2022 09:34
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding this !

# This is a placeholder for correct code for this message.
items = (1, 2, 3, 4, 5)

any(item % 2 == 0 for item in items)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you keep the functions from the 'bad' example please ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean like this?
any_even = any(item % 2 == 0 for item in items)?

@Pierre-Sassoulas Pierre-Sassoulas merged commit a7e7ca8 into pylint-dev:main Jul 9, 2022
@mbyrnepr2 mbyrnepr2 deleted the consider-using-any-or-all branch July 9, 2022 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants