Skip to content

Commit fd89fb5

Browse files
committed
Use keyword-only arguments in abort function
This function takes too many arguments and it is not clear which is which at the call site otherwise. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent c6757b9 commit fd89fb5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
## Upgrading
88

9-
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
9+
- The `frequenz.repo.config.github.abort()` function now takes most arguments as keyword-only arguments.
1010

1111
### Cookiecutter template
1212

src/frequenz/repo/config/github.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def format(self, record: logging.LogRecord) -> str:
5656

5757
def abort( # pylint: disable=too-many-arguments
5858
message: str,
59+
*,
5960
title: str | None = None,
6061
file: str | None = None,
6162
col: int | None = None,

0 commit comments

Comments
 (0)