-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[unnecessary-list-index-lookup] Fix crashes for uninferrable 'start' …
…value in 'enumerate' (#9704) (#9707) --------- Co-authored-by: Daniël van Noord <[email protected]> (cherry picked from commit 9f8dcbd) Co-authored-by: Pierre Sassoulas <[email protected]>
- Loading branch information
1 parent
6b66ca6
commit c3e2579
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Fixed a crash when the ``start`` value in an ``enumerate`` was non-constant and impossible to infer | ||
(like in``enumerate(apples, start=int(random_apple_index)``) for ``unnecessary-list-index-lookup``. | ||
|
||
Closes #9078 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters