Skip to content

Commit bb511f5

Browse files
bjoernricksgreenbonebot
authored andcommitted
Change: Use sane defaults for CreateReleaseCommand async_run method
Most arguments are just optional and having to pass them when calling the method is superfluous.
1 parent ca6dad2 commit bb511f5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pontos/release/create.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ async def async_run( # type: ignore[override]
130130
repository: str,
131131
versioning_scheme: VersioningScheme,
132132
release_type: ReleaseType,
133-
release_version: Optional[Version],
134-
next_version: Union[Version, Literal[False], None],
135-
git_signing_key: str,
136-
git_remote_name: Optional[str],
133+
release_version: Optional[Version] = None,
134+
next_version: Union[Version, Literal[False], None] = None,
135+
git_signing_key: Optional[str] = None,
136+
git_remote_name: Optional[str] = None,
137137
git_tag_prefix: Optional[str] = DEFAULT_TAG_PREFIX,
138-
cc_config: Optional[Path],
139-
local: Optional[bool] = False,
138+
cc_config: Optional[Path] = None,
139+
local: bool = False,
140140
release_series: Optional[str] = None,
141141
update_project: bool = True,
142142
github_pre_release: bool = False,

0 commit comments

Comments
 (0)