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
def plot():
""" adds a variable to the plot according to it's conf
> variables :
> foo:
> y: variable(bar)
> baz:
> color: red
"""
Notice that there is a non breaking space just after variables :.
Run Black on it with no argument
The following error happens:
INTERNAL ERROR: Black produced code that is not equivalent to the source. Please report a bug on https://github.com/psf/black/issues. This diff might be helpful: /tmp/blk_xn6q3h3t.log
--- src
+++ dst
@@ -16,11 +16,11 @@
body=
Expr(
value=
Constant(
value=
- "adds a variable to the plot according to it's conf\n\n> variables :\xa0\n> foo:\n> y: variable(bar)\n> baz:\n> color: red", # str
+ "adds a variable to the plot according to it's conf\n\n> variables :\n> foo:\n> y: variable(bar)\n> baz:\n> color: red", # str
) # /Constant
) # /Expr
decorator_list=
name=
'plot', # str
The error disappear by removing the non breaking space.
Environment:
Version: black-20.8b1
OS and Python version: Linux/Python 3.8.5
The bug also happens on master
The text was updated successfully, but these errors were encountered:
Steps to reproduce the behavior:
Notice that there is a non breaking space just after
variables :
.The error disappear by removing the non breaking space.
Environment:
The text was updated successfully, but these errors were encountered: