Skip to content

Commit

Permalink
Add missing return types
Browse files Browse the repository at this point in the history
  • Loading branch information
tibue99 committed Dec 29, 2023
1 parent f312f20 commit ca91a1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ezcord/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def random_avatar() -> str:
return f"https://cdn.discordapp.com/embed/avatars/{random.randint(0, 5)}.png"


def codeblock(content: int | str, *, lang: str = "yaml", unit: str = ""):
def codeblock(content: int | str, *, lang: str = "yaml", unit: str = "") -> str:
"""Returns a codeblock with the given content.
Parameters
Expand Down Expand Up @@ -153,7 +153,7 @@ def check(item: Any) -> bool:
return autocomplete_callback


def count_lines(directory: str | None = None):
def count_lines(directory: str | None = None) -> int:
"""Counts the total amount of lines in all Python files in the current directory.
Parameters
Expand Down

0 comments on commit ca91a1e

Please sign in to comment.