Reformat code using black

Segments where readability was hampered were fixed by appropriate
format skipping directives. New code should hopefully be black
compatible. The moment they remove the -S option is probably the moment
I stop using black though.
This commit is contained in:
Rapptz
2022-02-20 06:29:41 -05:00
parent af8e74d327
commit 88b520b5ab
56 changed files with 738 additions and 289 deletions

View File

@@ -81,9 +81,11 @@ from .audit_logs import AuditLogEntry
from .object import OLDEST_OBJECT, Object
# fmt: off
__all__ = (
'Guild',
)
# fmt: on
MISSING = utils.MISSING
@@ -2830,9 +2832,9 @@ class Guild(Hashable):
if data and entries:
if limit is not None:
limit -= len(data)
before = Object(id=int(entries[-1]['id']))
return data.get('users', []), entries, before, limit
async def _after_strategy(retrieve, after, limit):
@@ -2846,7 +2848,7 @@ class Guild(Hashable):
if data and entries:
if limit is not None:
limit -= len(data)
after = Object(id=int(entries[0]['id']))
return data.get('users', []), entries, after, limit
@@ -2864,7 +2866,6 @@ class Guild(Hashable):
if isinstance(after, datetime.datetime):
after = Object(id=utils.time_snowflake(after, high=True))
if oldest_first is None:
reverse = after is not None
else: