Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ use crate::fix::snippet::SourceCodeSnippet;
/// bar = [1, *foo, 5, 6]
/// ```
///
/// ## Fix safety
///
/// The fix is always marked as unsafe because `+` operator uses the `__add__` magic method while
Comment thread
VascoSch92 marked this conversation as resolved.
Outdated
/// the `*` uses the `__iter__` magic method, and these two could have custom
Comment thread
VascoSch92 marked this conversation as resolved.
Outdated
/// implementations making the fix changing the program behaviour.
Comment thread
VascoSch92 marked this conversation as resolved.
Outdated
///
/// ## References
/// - [PEP 448 – Additional Unpacking Generalizations](https://peps.python.org/pep-0448/)
/// - [Python documentation: Sequence Types — `list`, `tuple`, `range`](https://docs.python.org/3/library/stdtypes.html#sequence-types-list-tuple-range)
Expand Down