mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-22 08:23:09 +00:00
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:
@@ -360,7 +360,7 @@ def time_snowflake(dt: datetime.datetime, high: bool = False) -> int:
|
||||
The snowflake representing the time given.
|
||||
"""
|
||||
discord_millis = int(dt.timestamp() * 1000 - DISCORD_EPOCH)
|
||||
return (discord_millis << 22) + (2 ** 22 - 1 if high else 0)
|
||||
return (discord_millis << 22) + (2**22 - 1 if high else 0)
|
||||
|
||||
|
||||
def find(predicate: Callable[[T], Any], seq: Iterable[T]) -> Optional[T]:
|
||||
|
Reference in New Issue
Block a user