Skip to content

Commit 3cfbfcd

Browse files
committed
Black formatting
1 parent ffbd890 commit 3cfbfcd

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

config/__init__.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -767,17 +767,19 @@ class YAMLConfiguration(FileConfiguration):
767767
"""Configuration from a YAML input."""
768768

769769
def __init__(
770-
self,
771-
data: Union[str, TextIO],
772-
read_from_file: bool = False,
773-
*,
774-
lowercase_keys: bool = False,
775-
interpolate: InterpolateType = False,
776-
interpolate_type: InterpolateEnumType = InterpolateEnumType.STANDARD,
777-
ignore_missing_paths: bool = False,
770+
self,
771+
data: Union[str, TextIO],
772+
read_from_file: bool = False,
773+
*,
774+
lowercase_keys: bool = False,
775+
interpolate: InterpolateType = False,
776+
interpolate_type: InterpolateEnumType = InterpolateEnumType.STANDARD,
777+
ignore_missing_paths: bool = False,
778778
):
779779
if yaml is None:
780-
raise ImportError("Dependency <yaml> is not found, but required by this class.")
780+
raise ImportError(
781+
"Dependency <yaml> is not found, but required by this class."
782+
)
781783
super().__init__(
782784
data=data,
783785
read_from_file=read_from_file,
@@ -787,9 +789,7 @@ def __init__(
787789
ignore_missing_paths=ignore_missing_paths,
788790
)
789791

790-
def _reload(
791-
self, data: Union[str, TextIO], read_from_file: bool = False
792-
) -> None:
792+
def _reload(self, data: Union[str, TextIO], read_from_file: bool = False) -> None:
793793
"""Reload the YAML data."""
794794
if read_from_file and isinstance(data, str):
795795
loaded = yaml.load(open(data, "rt"), Loader=yaml.FullLoader)
@@ -844,7 +844,9 @@ def __init__(
844844
ignore_missing_paths: bool = False,
845845
):
846846
if toml is None:
847-
raise ImportError("Dependency <toml> is not found, but required by this class.")
847+
raise ImportError(
848+
"Dependency <toml> is not found, but required by this class."
849+
)
848850

849851
self._section_prefix = section_prefix
850852
super().__init__(
@@ -856,9 +858,7 @@ def __init__(
856858
ignore_missing_paths=ignore_missing_paths,
857859
)
858860

859-
def _reload(
860-
self, data: Union[str, TextIO], read_from_file: bool = False
861-
) -> None:
861+
def _reload(self, data: Union[str, TextIO], read_from_file: bool = False) -> None:
862862
"""Reload the TOML data."""
863863
if read_from_file:
864864
if isinstance(data, str):

0 commit comments

Comments
 (0)