-
-
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) --------- Co-authored-by: Daniël van Noord <[email protected]>
- Loading branch information
1 parent
f082174
commit 9f8dcbd
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