You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am actually not too sure if this is an issue of Black, the original docstring is already formatted badly, but just in case this is something that shouldn't happen, I've decided it's better to post it here.
This happens only on master (tested on commit cd3a93a)
Input:
defdelete_delay():
"""Currently used for: * delete delay"""defremove_global_rule():
"""Remove a global rule from a command. `<cog_or_command>` is the cog or command to remove the rule from. This is case sensitive. `<who_or_what>` is one or more users, channels or roles the rule is for. """
Output:
defdelete_delay():
"""Currently used for: * delete delay"""defremove_global_rule():
"""Remove a global rule from a command. `<cog_or_command>` is the cog or command to remove the rule from. This is case sensitive. `<who_or_what>` is one or more users, channels or roles the rule is for. """
And since it might be a little hard to notice, here's diff:
--- test.py 2020-06-01 00:37:40.239073 +0000+++ test.py 2020-06-01 00:37:42.678071 +0000@@ -1,13 +1,13 @@
def delete_delay():
"""Currently used for:
- * delete delay"""+ * delete delay"""
def remove_global_rule():
"""Remove a global rule from a command.
- `<cog_or_command>` is the cog or command to remove the rule- from. This is case sensitive.+ `<cog_or_command>` is the cog or command to remove the rule+ from. This is case sensitive.- `<who_or_what>` is one or more users, channels or roles the rule is for.+ `<who_or_what>` is one or more users, channels or roles the rule is for.
"""
The text was updated successfully, but these errors were encountered:
This is probably because of #1053. As you have already mentioned, this doesn't happen on stable since that PR is after the latest release.
Stable
(env) richard-26@ubuntu-laptop:~/programming/bandersnatch$ black ../black/test.py --diff
--- ../black/test.py 2020-06-10 15:42:09.718125 +0000+++ ../black/test.py 2020-06-10 15:45:33.325073 +0000@@ -1,8 +1,9 @@
def delete_delay():
"""Currently used for:
* delete delay"""
+
def remove_global_rule():
"""Remove a global rule from a command.
`<cog_or_command>` is the cog or command to remove the rule
reformatted ../black/test.py
All done! ✨ 🍰 ✨
1 file reformatted.
I am actually not too sure if this is an issue of Black, the original docstring is already formatted badly, but just in case this is something that shouldn't happen, I've decided it's better to post it here.
This happens only on master (tested on commit cd3a93a)
Input:
Output:
And since it might be a little hard to notice, here's diff:
The text was updated successfully, but these errors were encountered: