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

Decouple FunctionDef and Lambda #2115

Merged
merged 3 commits into from
Apr 17, 2023

Conversation

DanielNoord
Copy link
Collaborator

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

As discussed in #2112 we really need to decouple this nodes. I think this warrants a 3.0 release for the next release. We don't need to do any of the other deprecations but this is just 100% necessary for Mypy but will also 100% break code of users.

Let me know what you think!

/CC @nickdrozd

@codecov
Copy link

codecov bot commented Apr 11, 2023

Codecov Report

Merging #2115 (60e8d77) into main (0bfe98e) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2115      +/-   ##
==========================================
- Coverage   92.74%   92.73%   -0.02%     
==========================================
  Files          94       94              
  Lines       10981    11007      +26     
==========================================
+ Hits        10184    10207      +23     
- Misses        797      800       +3     
Flag Coverage Ξ”
linux 92.45% <100.00%> (-0.01%) ⬇️
pypy 87.88% <90.00%> (-0.15%) ⬇️
windows 92.28% <100.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Ξ”
astroid/helpers.py 93.71% <100.00%> (ΓΈ)
astroid/nodes/scoped_nodes/scoped_nodes.py 92.34% <100.00%> (-0.74%) ⬇️

... and 5 files with indirect coverage changes

nickdrozd
nickdrozd previously approved these changes Apr 12, 2023
Copy link
Contributor

@nickdrozd nickdrozd left a comment

Choose a reason for hiding this comment

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

πŸ‘

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.

Let's do the breaking change, but let's cover the new code if reasonable.

"""
if "method" in self.type:
return "Method"
return "Function"
Copy link
Member

Choose a reason for hiding this comment

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

Should be trivial to cover (?)

astroid/nodes/scoped_nodes/scoped_nodes.py Show resolved Hide resolved
@Pierre-Sassoulas Pierre-Sassoulas merged commit 1a14b5d into pylint-dev:main Apr 17, 2023
19 checks passed
@DanielNoord DanielNoord deleted the lambda-functiondef branch April 17, 2023 15:29
@Pierre-Sassoulas Pierre-Sassoulas modified the milestones: 2.16.0, 3.0 Apr 24, 2023
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.

None yet

3 participants