File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments