40
40
class BumpArgs (Settings , total = False ):
41
41
allow_no_commit : bool | None
42
42
annotated_tag_message : str | None
43
- annotated_tag : bool
44
43
build_metadata : str | None
45
44
changelog_to_stdout : bool
46
45
changelog : bool
@@ -51,7 +50,6 @@ class BumpArgs(Settings, total=False):
51
50
files_only : bool | None
52
51
get_next : bool
53
52
git_output_to_stderr : bool
54
- gpg_sign : bool
55
53
increment_mode : str
56
54
increment : Increment | None
57
55
local_version : bool
@@ -222,7 +220,7 @@ def __call__(self) -> None:
222
220
223
221
if get_next :
224
222
# 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 :
226
224
raise NotAllowed (
227
225
"--changelog or --changelog-to-stdout is not allowed with --get-next"
228
226
)
@@ -234,9 +232,7 @@ def __call__(self) -> None:
234
232
# If user specified changelog_to_stdout, they probably want the
235
233
# changelog to be generated as well, this is the most intuitive solution
236
234
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
240
236
)
241
237
242
238
rules = TagRules .from_settings (cast (Settings , self .bump_settings ))
0 commit comments