From 69ddcda32846fab901673dfd16649f2138d6ac0e Mon Sep 17 00:00:00 2001 From: Brian Pepple Date: Wed, 19 Jun 2024 10:35:35 -0400 Subject: [PATCH] Add docstring for validate() --- metrontagger/validate_ci.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/metrontagger/validate_ci.py b/metrontagger/validate_ci.py index ce5982c..99f8e9e 100644 --- a/metrontagger/validate_ci.py +++ b/metrontagger/validate_ci.py @@ -90,6 +90,13 @@ def _is_valid(self: ValidateComicInfo, schema_version: SchemaVersion) -> bool: return xmlschema.validate(xml_doc) def validate(self: ValidateComicInfo) -> SchemaVersion: + """ + Returns the highest valid schema version based on the given ValidateComicInfo instance. + + Returns: + SchemaVersion: The highest valid schema version found. + """ + return next( ( schema_version