From 9376aeafd94c5c26d0f80ad995fe0487e027d97e Mon Sep 17 00:00:00 2001 From: RohanRadia Date: Wed, 2 Oct 2019 21:15:34 +0100 Subject: Final Linting --- bot/seasons/evergreen/issues.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'bot') diff --git a/bot/seasons/evergreen/issues.py b/bot/seasons/evergreen/issues.py index 5f46e1e6..ddcdb265 100644 --- a/bot/seasons/evergreen/issues.py +++ b/bot/seasons/evergreen/issues.py @@ -18,12 +18,13 @@ respValue = {404: "Issue/pull request not located! Please enter a valid number!" class Issues(commands.Cog): """Cog that allows users to retrieve issues from GitHub""" - def __init__(self, bot): + def __init__(self, bot: commands.Bot): self.bot = bot @commands.command(aliases=("pr",)) - async def issues(self, ctx, number: int, repository: str = "seasonalbot", user: str = "python-discord") -> None: - """Command to get issues/pull request from GitHub""" + async def issues(self, ctx: commands.Context, number: int, repository: str = "seasonalbot", + user: str = "python-discord") -> None: + """Command to get issues/pull request from GitHub.""" url = f"https://api.github.com/repos/{user}/{repository}/issues/{str(number)}" mergeURL = f"https://api.github.com/repos/{user}/{repository}/pulls/{str(number)}/merge" @@ -56,6 +57,6 @@ class Issues(commands.Cog): def setup(bot) -> None: - """Cog Retrieves Issues From Github""" - bot.add_cog(Issues(bot)) + """Cog Retrieves Issues From Github.""" + bot.add_cog(Issues(bot: commands.Bot)) log.info("Issues cog loaded") -- cgit v1.2.3