mirror of
https://github.com/ansible/ansible-documentation.git
synced 2026-03-26 13:18:58 +07:00
labeler: fix log() type annotations (#165)
print() coerces any object to a str.
This commit is contained in:
@@ -33,7 +33,7 @@ IssueOrPr = Union["github.Issue.Issue", "github.PullRequest.PullRequest"]
|
||||
|
||||
# TODO: If we end up needing to log more things with more granularity,
|
||||
# switch to something like `logging`
|
||||
def log(ctx: IssueOrPrCtx, *args: str) -> None:
|
||||
def log(ctx: IssueOrPrCtx, *args: object) -> None:
|
||||
print(f"{ctx.member.number}:", *args)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user