diff options
| author | 2019-10-02 21:15:34 +0100 | |
|---|---|---|
| committer | 2019-10-02 21:15:34 +0100 | |
| commit | 9376aeafd94c5c26d0f80ad995fe0487e027d97e (patch) | |
| tree | 65d05463a1bc875e9be7886f2bc23e455526214f | |
| parent | Linting (diff) | |
Final Linting
Diffstat (limited to '')
| -rw-r--r-- | bot/seasons/evergreen/issues.py | 11 | 
1 files changed, 6 insertions, 5 deletions
| 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") | 
