chore: upgrade black (#19410)

This commit is contained in:
Ville Brofeldt
2022-03-29 20:03:09 +03:00
committed by GitHub
parent 816a2c3e1e
commit a619cb4ea9
204 changed files with 2125 additions and 608 deletions

View File

@@ -21,7 +21,12 @@ from superset.utils.pandas_postprocessing.utils import FLAT_COLUMN_SEPARATOR
def test_flat_should_not_change():
df = pd.DataFrame(data={"foo": [1, 2, 3], "bar": [4, 5, 6],})
df = pd.DataFrame(
data={
"foo": [1, 2, 3],
"bar": [4, 5, 6],
}
)
assert pp.flatten(df).equals(df)
@@ -40,7 +45,13 @@ def test_flat_should_flat_datetime_index():
df = pd.DataFrame(index=index, data={"foo": [1, 2, 3], "bar": [4, 5, 6]})
assert pp.flatten(df).equals(
pd.DataFrame({"__timestamp": index, "foo": [1, 2, 3], "bar": [4, 5, 6],})
pd.DataFrame(
{
"__timestamp": index,
"foo": [1, 2, 3],
"bar": [4, 5, 6],
}
)
)