Bump black to 20.8b1 (and reformat) (#4371)

* Bump black version

* Reformat with black
This commit is contained in:
jack1142
2020-08-29 19:12:28 +02:00
committed by GitHub
parent 56b54d4d34
commit 85afe19455
30 changed files with 83 additions and 54 deletions

View File

@@ -40,7 +40,7 @@ class Downloader(commands.Cog):
Community cogs, also called third party cogs, are not included
in the default Red install.
Community cogs come in repositories. Repos are a group of cogs
you can install. You always need to add the creator's repository
using the `[p]repo` command before you can install one or more
@@ -545,7 +545,9 @@ class Downloader(commands.Cog):
)
except OSError:
log.exception(
"Something went wrong trying to add repo %s under name %s", repo_url, name,
"Something went wrong trying to add repo %s under name %s",
repo_url,
name,
)
await ctx.send(
_(

View File

@@ -1153,11 +1153,11 @@ class RepoManager:
async def update_repos(
self, repos: Optional[Iterable[Repo]] = None
) -> Tuple[Dict[Repo, Tuple[str, str]], List[str]]:
"""Calls `Repo.update` on passed repositories and
"""Calls `Repo.update` on passed repositories and
catches failing ones.
Calling without params updates all currently installed repos.
Parameters
----------
repos: Iterable
@@ -1168,7 +1168,7 @@ class RepoManager:
tuple of Dict and list
A mapping of `Repo` objects that received new commits to
a 2-`tuple` of `str` containing old and new commit hashes.
`list` of failed `Repo` names
"""
failed = []