🎨 Format Python code with Black

This commit is contained in:
zamentur 2021-09-12 21:56:17 +00:00 committed by GitHub
parent 6e714314f0
commit 2543e5c8ab

View file

@ -119,8 +119,8 @@ def write_to_file(file_path, data, file_mode="w"):
file_mode -- Mode used when writing the file. Option meant to be used file_mode -- Mode used when writing the file. Option meant to be used
by append_to_file to avoid duplicating the code of this function. by append_to_file to avoid duplicating the code of this function.
""" """
assert isinstance(data, str) or isinstance(data, bytes) or isinstance( assert (
data, list isinstance(data, str) or isinstance(data, bytes) or isinstance(data, list)
), "Error: data '%s' should be either a string or a list but is of type '%s'" % ( ), "Error: data '%s' should be either a string or a list but is of type '%s'" % (
data, data,
type(data), type(data),