-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: Linearity check array comprehensions #615
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feat/array-compr #615 +/- ##
====================================================
+ Coverage 91.55% 91.70% +0.15%
====================================================
Files 60 60
Lines 6463 6497 +34
====================================================
+ Hits 5917 5958 +41
+ Misses 546 539 -7 ☔ View full report in Codecov by Sentry. |
@@ -356,11 +360,11 @@ def _check_assign_targets(self, targets: list[ast.expr]) -> None: | |||
self.scope.assign(tgt_place) | |||
|
|||
def _check_comprehension( | |||
self, node: DesugaredListComp, gens: list[DesugaredGenerator] | |||
self, node: ast.expr, gens: list[DesugaredGenerator], elt: ast.expr |
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.
It looks like node is unused?
Refactor the list comprehension logic so we can also use it for array comprehensions