Skip to content

Unwrap Iterable Construction

Sourcery refactoring id: unwrap-iterable-construction

Description

Unwrap an iterable constructor into a literal iterable.

Before

tuple([user_config, *package_config, local_config])

After

(user_config, *package_config, local_config)

Explanation

Creating the intermediate constant is unnecessary and needlessly verbose.