-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Infer returns from match cases #2042
Conversation
@@ -4998,6 +4998,7 @@ class Match(_base_nodes.Statement): | |||
""" | |||
|
|||
_astroid_fields = ("subject", "cases") | |||
_multi_line_block_fields = ("cases",) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This allows MultiLineBlockNode._get_return_nodes_skip_functions()
to do something useful.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2042 +/- ##
=======================================
Coverage 92.78% 92.78%
=======================================
Files 95 95
Lines 11007 11012 +5
=======================================
+ Hits 10213 10218 +5
Misses 794 794
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Provide argument to test fn Co-authored-by: Pierre Sassoulas <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Type of Changes
Description
Refs pylint-dev/pylint#5288