Skip to content

Commit 2ca21f6

Browse files
committed
Rename local function variable to avoid confusion
1 parent 56fae18 commit 2ca21f6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

linodecli/configuration/helpers.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,15 @@ def _default_thing_input(
144144
exists = current_value is not None
145145

146146
idx_offset = int(exists) + 1
147-
calculate_padding = partial(
148-
_calculate_padding, total=len(things) + idx_offset
149-
)
147+
pad = partial(_calculate_padding, total=len(things) + idx_offset)
150148

151149
# If there is a current value, users should have the option to clear it
152150
if exists:
153-
print(f"{calculate_padding(1)}1 - No Default")
151+
print(f"{pad(1)}1 - No Default")
154152

155153
for ind, thing in enumerate(things):
156154
effective_ind = ind + idx_offset
157-
print(f"{calculate_padding(effective_ind)}{effective_ind} - {thing}")
155+
print(f"{pad(effective_ind)}{effective_ind} - {thing}")
158156
print()
159157

160158
while True:

0 commit comments

Comments
 (0)