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

Let is_lambda stay False for FunctionDef #2220

Merged
merged 3 commits into from
Jul 4, 2023

Conversation

jacobtylerwalls
Copy link
Member

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

Follow-up to 1a14b5d.

DanielNoord
DanielNoord previously approved these changes Jun 22, 2023
@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

Merging #2220 (18c3d83) into main (bf4d420) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2220   +/-   ##
=======================================
  Coverage   92.82%   92.83%           
=======================================
  Files          94       94           
  Lines       10930    10957   +27     
=======================================
+ Hits        10146    10172   +26     
- Misses        784      785    +1     
Flag Coverage Ξ”
linux 92.58% <100.00%> (+<0.01%) ⬆️
pypy 90.95% <100.00%> (+0.01%) ⬆️
windows 92.42% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Ξ”
astroid/nodes/_base_nodes.py 96.56% <100.00%> (-0.32%) ⬇️
astroid/nodes/node_classes.py 94.81% <100.00%> (+0.04%) ⬆️
astroid/nodes/node_ng.py 93.67% <100.00%> (+0.03%) ⬆️
astroid/nodes/scoped_nodes/scoped_nodes.py 92.38% <100.00%> (+0.01%) ⬆️

Comment on lines +1502 to +1503
# Want an intersecting member that is neither in a lambda nor a function
return bool(yields_without_lambdas & yields_without_functions)
Copy link
Member Author

Choose a reason for hiding this comment

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

This is what necessitated all those new methods, given that FunctionDefs are no longer lambdas... (lol) we can't just skip lambdas only.

@jacobtylerwalls jacobtylerwalls merged commit 8a5f885 into pylint-dev:main Jul 4, 2023
18 checks passed
@jacobtylerwalls jacobtylerwalls deleted the lambda-followup branch July 4, 2023 19:47
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.

3 participants