Skip to content

Commit 270a13d

Browse files
Michael HallikMichael Hallik
authored andcommitted
style: reformat code with black
1 parent 996f11c commit 270a13d

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/xmlvalidator/XmlValidator.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,10 @@ class XmlValidator:
408408

409409
def __init__(
410410
self,
411-
xsd_path: Optional[str|Path] = None,
412-
base_url: Optional[str] = None,
413-
error_facets: Optional[List[str]] = None
414-
) -> None:
411+
xsd_path: str | Path | None = None,
412+
base_url: str | None = None,
413+
error_facets: List[str] | None = None,
414+
) -> None:
415415
"""
416416
**Library Scope**
417417
@@ -550,20 +550,21 @@ def __init__(
550550
self.validator_results = ValidatorResultRecorder()
551551
# Initialize the xsd schema from the xsd_path, if provided.
552552
self.schema = self._try_load_initial_schema(
553-
xsd_path=xsd_path,
554-
base_url=base_url
555-
)
553+
xsd_path=xsd_path, base_url=base_url
554+
)
556555
# Set the error facets to collect for failed XML validations.
557556
self.error_facets = error_facets if error_facets else [
558557
'path', 'reason'
559-
]
558+
]
560559
logger.info(
561560
f"Collecting error facets: {self.error_facets}.",
562561
also_console=True
563-
)
562+
)
564563
logger.info("XML Validator ready for use!", also_console=True)
565564
self.nr_instances += 1
566-
logger.info(f'Number of library instances: {self.nr_instances}.')
565+
logger.info(
566+
f'Number of library instances: {self.nr_instances}.'
567+
)
567568

568569
def _determine_validations(
569570
self,

0 commit comments

Comments
 (0)