4040class BumpArgs (Settings , total = False ):
4141 allow_no_commit : bool | None
4242 annotated_tag_message : str | None
43- annotated_tag : bool
4443 build_metadata : str | None
4544 changelog_to_stdout : bool
4645 changelog : bool
@@ -51,7 +50,6 @@ class BumpArgs(Settings, total=False):
5150 files_only : bool | None
5251 get_next : bool
5352 git_output_to_stderr : bool
54- gpg_sign : bool
5553 increment_mode : str
5654 increment : Increment | None
5755 local_version : bool
@@ -222,7 +220,7 @@ def __call__(self) -> None:
222220
223221 if get_next :
224222 # if trying to use --get-next, we should not allow --changelog or --changelog-to-stdout
225- if self .changelog_flag or bool ( self .changelog_to_stdout ) :
223+ if self .changelog_flag or self .changelog_to_stdout :
226224 raise NotAllowed (
227225 "--changelog or --changelog-to-stdout is not allowed with --get-next"
228226 )
@@ -234,9 +232,7 @@ def __call__(self) -> None:
234232 # If user specified changelog_to_stdout, they probably want the
235233 # changelog to be generated as well, this is the most intuitive solution
236234 self .changelog_flag = bool (
237- self .changelog_flag
238- or bool (self .changelog_to_stdout )
239- or self .changelog_config
235+ self .changelog_flag or self .changelog_to_stdout or self .changelog_config
240236 )
241237
242238 rules = TagRules .from_settings (cast (Settings , self .bump_settings ))
0 commit comments