@@ -231,8 +231,8 @@ def __call__(self) -> None:
231
231
else :
232
232
# If user specified changelog_to_stdout, they probably want the
233
233
# changelog to be generated as well, this is the most intuitive solution
234
- self .changelog_flag = bool (
235
- self .changelog_flag or self .changelog_to_stdout or self .changelog_config
234
+ self .changelog_flag = any (
235
+ ( self .changelog_flag , self .changelog_to_stdout , self .changelog_config )
236
236
)
237
237
238
238
rules = TagRules .from_settings (cast (Settings , self .bump_settings ))
@@ -410,14 +410,18 @@ def __call__(self) -> None:
410
410
411
411
c = git .tag (
412
412
new_tag_version ,
413
- signed = bool (
414
- self .bump_settings .get ("gpg_sign" )
415
- or self .config .settings .get ("gpg_sign" )
413
+ signed = any (
414
+ (
415
+ self .bump_settings .get ("gpg_sign" ),
416
+ self .config .settings .get ("gpg_sign" ),
417
+ )
416
418
),
417
- annotated = bool (
418
- self .bump_settings .get ("annotated_tag" )
419
- or self .config .settings .get ("annotated_tag" )
420
- or self .bump_settings .get ("annotated_tag_message" )
419
+ annotated = any (
420
+ (
421
+ self .bump_settings .get ("annotated_tag" ),
422
+ self .config .settings .get ("annotated_tag" ),
423
+ self .bump_settings .get ("annotated_tag_message" ),
424
+ )
421
425
),
422
426
msg = self .bump_settings .get ("annotated_tag_message" , None ),
423
427
# TODO: also get from self.config.settings?
0 commit comments