Skip to content

Commit

Permalink
labeler: fix log() type annotations (ansible#165)
Browse files Browse the repository at this point in the history
print() coerces any object to a str.
  • Loading branch information
gotmax23 committed Jul 25, 2023
1 parent 70a120e commit 74d0908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hacking/pr_labeler/label.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

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


Expand Down

0 comments on commit 74d0908

Please sign in to comment.