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:
408
408
409
409
def __init__ (
410
410
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 :
415
415
"""
416
416
**Library Scope**
417
417
@@ -550,20 +550,21 @@ def __init__(
550
550
self .validator_results = ValidatorResultRecorder ()
551
551
# Initialize the xsd schema from the xsd_path, if provided.
552
552
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
+ )
556
555
# Set the error facets to collect for failed XML validations.
557
556
self .error_facets = error_facets if error_facets else [
558
557
'path' , 'reason'
559
- ]
558
+ ]
560
559
logger .info (
561
560
f"Collecting error facets: { self .error_facets } ." ,
562
561
also_console = True
563
- )
562
+ )
564
563
logger .info ("XML Validator ready for use!" , also_console = True )
565
564
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
+ )
567
568
568
569
def _determine_validations (
569
570
self ,
You can’t perform that action at this time.
0 commit comments