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

Add yield-outside-function documentation examples #6585

Merged
merged 3 commits into from
May 12, 2022

Conversation

mbyrnepr2
Copy link
Member

@mbyrnepr2 mbyrnepr2 commented May 11, 2022

Add yield-outside-function documentation examples based on the pyling-errors project.

Co-authored-by: Vladyslav Krylasov vladyslav.krylasov@gmail.com

Type of Changes

Type
🐛 Bug fix
✨ New feature
🔨 Refactoring
📜 Docs

Description

Partially addresses #5953

@coveralls
Copy link

Pull Request Test Coverage Report for Build 2309837546

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 95.344%

Totals Coverage Status
Change from base Build 2309292369: 0.0%
Covered Lines: 16033
Relevant Lines: 16816

💛 - Coveralls

…int-errors` project.

Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com>
Comment on lines 1 to 6
def get_values(data):
yield from data


for i in get_values(range(10)):
pass
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
def get_values(data):
yield from data
for i in get_values(range(10)):
pass
def get_values(data):
for i in range(10):
yield i

Copy link
Member

Choose a reason for hiding this comment

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

Ha sorry I made the same comment 😄

@Pierre-Sassoulas Pierre-Sassoulas merged commit b986bcb into pylint-dev:main May 12, 2022
@mbyrnepr2 mbyrnepr2 deleted the yield-outside-function branch May 12, 2022 12:00
@Pierre-Sassoulas Pierre-Sassoulas removed this from the 2.14.0 milestone May 17, 2022
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.

4 participants