labeler: fix log() type annotations (#165)

print() coerces any object to a str.
This commit is contained in:
Maxwell G
2023-07-25 12:15:45 -05:00
committed by GitHub
parent b45cdeed96
commit 5c48149561

View File

@@ -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)