Skip to content

Unwrap Iterable Construction

Documentation Index

Fetch the complete documentation index at: https://docs.sourcery.ai/llms.txt

Use this file to discover all available pages before exploring further.

Sourcery refactoring id: unwrap-iterable-construction

Section titled “Sourcery refactoring id: unwrap-iterable-construction”

Unwrap an iterable constructor into a literal iterable.

tuple([user_config, *package_config, local_config])
(user_config, *package_config, local_config)

Creating the intermediate constant is unnecessary and needlessly verbose.